-
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
HLS MaxAudioBitrate limit not working #6006
Comments
Strange thing (but maybe not related) - every time i call player.currentManifest i got null. Same with onTimelineChanged event - i get 3 events (as expected), but manifest is null in all of them |
Further information. I had to change HttpDataSource to OkHttp like that:
to bypass SSL problems with our internal certs. It seems like on OkHttp the exact same code is working fine, just after playback start i get log |
Hi, sorry for the delay on this. I got confused thinking it was a duplicate of a different issue in the current HLS implementation. I'll have a look soon and reach back. |
No worries. Let me know if i can help you more |
There is a bug in the default track selector, due to which it ignores the maximum audio bitrate when creating the adaptive audio group. A fix for this will be referred in this issue soon. As a side note, you should not select both a maximum bitrate and Final note. I don't know how you got this in the logs:
as this would mean that the player has not selected any audio tracks. However, you also mention
so I assume there was some confusion here. |
I was experimenting with As of the logs - Now, when using OkHttpDataSource, Renderer ` gets right track selected, so no problem here :) |
Issue:#6006 PiperOrigin-RevId: 253781533
This should be fixed in the dev branch. Please give |
Issue:#6006 PiperOrigin-RevId: 253781533
Version 2.10.2 seems to be working fine. Thanks |
Content description
I'm trying to stream audio only files (AAC and MP3, both codecs have the same issue). I generated 3 different bitrates playlists (256k, 192k and 128k) and then master playlist.
I need to be able to limit max bitrate (if users want to limit their data usage) to set values. So i have code:
And i setup hls media source like that (just static test streams):
It's playing very well, no issues here, but unfortunetely, with this setup, exoplayer always chooses track with highest bitrate. Logs:
I found configuring
adaptive streaming
very confusing, since internet is full of samples with old api versions and i wasn't able to find some official documentation about that.Link to test content
Whole streamed content: files.zip
Version of ExoPlayer being used
2.10.1
Device(s) and version(s) of Android being used
Mutiple versions of android on Android Emulator and on physical device (Nokia 8)
The text was updated successfully, but these errors were encountered: