-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
How to set initial AudioTrack index #5831
Comments
The initial audio track is selected on LEVEL_SWITCHING after AUDIO_TRACKS_UPDATED by picking the first option with DEFAULT=YES. To override, set |
Thanks @robwalch, but my problem is that I want to decide what track to play dynamically from the code, and not change the manifest (so DEFAULT=YES will not help me). |
Is there audio in the main track? No other audio playlists are loaded when done properly. AUDIO_TRACKS_UPDATED is emitted before any audio is loaded so this sounds like either an error in your implementation or a bug. Please file one with steps to reproduce so that we can look into it.
That's not yet a feature. See #5532. |
…h zero tracks Allow selection of audioTrack on AUDIO_TRACKS_UPDATED (overriding default selection - Resolves #5831) Cleanup selection of subtitleTrack on SUBTITLE_TRACKS_UPDATED (overriding default selection)
Hi @rangermanWSC, I just added a change in #5880 that should allow track selection in the AUDIO_TRACKS_UPDATED event handler. Let me know if this works for you. Thanks! |
What do you want to do with Hls.js?
Hi, is there a way to set an initial audioTrack other then the default (0) ?
Because if I change it manually after the parsed event then I get some delay.
What have you tried so far?
No response
The text was updated successfully, but these errors were encountered: