-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improvements on (audio) track selection #4707
base: development
Are you sure you want to change the base?
improvements on (audio) track selection #4707
Conversation
@@ -998,14 +998,11 @@ import Events from './events/Events.js'; | |||
* - Constants.TRACK_SWITCH_MODE_NEVER_REPLACE | |||
* Do not replace existing segments in the buffer | |||
* | |||
* @property {string} [selectionModeForInitialTrack="highestSelectionPriority"] | |||
* @property {string} [selectionModeForInitialTrack="highestEfficiency"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we keep highestSelectionPriority
as an option here. I would still like to give applications the chance to ignore selectionPriority
if required. With the changes here and below we always use selectionPriority
regardless of the configured mode
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done - see the newly introduced ignoreSelectionPriority
flag
result.push(track); | ||
} | ||
}); | ||
if ( trackArr[0] && (trackArr[0].type === Constants.VIDEO) ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please split this logic into two separate functions one for audio and one for video which are then called here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
this improves track selection as discussed here: #4701