-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Support setMinVideoBitrate in Parameters ? #4511
Comments
Could you clarify what the use case is? Thanks! |
In our application we show three options High, medium,low quality. These options are distributed over 7 bitrates. 1080p and above High 720p to less than 1080p Medium And less than 720p (480p, 360p, 180p) is low. This can be done easily if we have setMinVideoBitrate in Parameters. Hope I have clarified the use case. Thanks, |
So to clarify, if the user selects "High" but has insufficient bandwidth for 1080p, you explicitly want to give the user re-buffering rather than having the player seamlessly adapt down to 720p until the bandwidth improves? And if so, why? |
Yes, Because it is a user preference that video should be played in 1080p. I think it is a bad user experience if we do ABR even after user selecting 1080p. |
Do you want ABR at all if the user selects an option? If not, you can use track selection overrides to select the specific track you want to play. |
@ojw28 I need ABR on tracks within particular bitrate range. So, if user selects Medium ( we have three bitrate ladders 480p, 720p and 900p which fall under this ), ABR should apply on only these tracks. Even if the network is bad it should not fall below 480p and restrict to 900p even if the network is better. Thanks, |
Got it. And given the choice of specifying the minimum bound in terms of resolution or bitrate, which would you prefer? We may add support for one (or both), although it'll likely be handled as a low priority request. |
Thanks for acknowledging.. i think resolution is already supported (setting video max size). Anyways.. I prefer bitrate over resolution. |
Setting the video min size isn't though, right :)? Which I think is the resolution equivalent of setting the min bitrate. |
Ahhh.. got it. My bad. As we can have various bitrates for same resolution, it makes more sense to have resolution specific parameter. Let me know if you have any thoughts on this :) Thanks. |
@ojw28 |
At a high level, yes. And yes, please feel free to send a pull request.
|
Thanks for the guidance, I appreciate it. In this case, I see six tie-breaking cases (perhaps am I wrong?):
So in case 2 and 5 we can use the pixel count (or bitrate) logic, but not clear how to handle the remaining cases :) |
I think we'd want:
|
Thanks for the tips! I've made a pull-request where I handled these cases as written above. |
Merged into |
I've a use case where I've to set minimum bitrate for video playback. I didn't find any such method in
DefaultTrackSelector.Parameters
.Right now I am getting all available tracks and using
setSelectionOverride
with required video tracks. Curious is there any easy way to do it?Thanks in advance.
The text was updated successfully, but these errors were encountered: