forked from shaka-project/shaka-player
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix handling of role-less audio tracks
These two issues turned out to be related: 1. No way to select a track without a particular role (shaka-project#2906) 2. Player should default to role-less audio tracks (shaka-project#2909) Before this fix, the Player would default to the first audio track with a language match, which may have been an audio description track or commentary track. If the user doesn't have a preference of track roles, we should default to a role-less track when possible. There was also no way to explicitly select a role-less track in selectAudioLanguage. Before this fix, a call without a role would effect a language-only match, ignoring roles and potentially selecting a description or commentary track. Now, not specifying a role (either in initial preferences or in selectAudioLanguage) will result in a preference for role-less tracks when possible. Fixes shaka-project#2906 Fixes shaka-project#2909 Change-Id: Ie6957eaecd1dcf9b7b65d62afa8ba9d9a5bdefe9
- Loading branch information
1 parent
9692dc0
commit 99d8d37
Showing
3 changed files
with
103 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters