-
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
Improve audio switch #2437
Improve audio switch #2437
Conversation
…PlaybackProgression. No need to do it after an init segment.
…_MODE_ALWAYS_REPLACE
… media segment has been downloaded. So, in order to not download this new segment again, we have to update the executedRequest array.
…in order to be able to start scheduleController
Not sure if it is intentional or unintentional but this PR fixes audio stream switching for us, the original issue was #2239 which was close via #2411, but it still did not work in development. Now switching both then paused and playing back the video works without issues. Log from development:
|
I've been doing some testing with this using multiple video tracks.. In my testing, when using Additionally, if I immediately seek backwards after a track switch completes I still see the old track data. I'm trying to get a test stream to demonstrate the problem. I didn't see any mention of the track switch mode in your PR, so I'm not sure if that's related. I'm not exactly sure which use case your PR is fixing, so perhaps I'm misunderstanding the goal of this PR. When I go to the reference player (which does include this PR now, it looks like), and test with my own test stream, switching audio tracks still completely stops the player. |
Hi @nweber , this PR was focused on audio track switch when the option is TRACK_SWITCH_MODE_ALWAYS_REPLACE. Your issue is for both, audio and video tracks switch, isn't it? Nico |
@nicosang Here you go! Stream: https://s3.amazonaws.com/ssi-us-east-1-elemental-hls/bbb/streams/bbb.mpd If you change the video switch mode to "always replace" you should see playback stall when switching video tracks. Switching audio tracks is working fine. |
Hi,
this PR has to improve fast audio switch. The main idea is that when an audio switch occurs, the stream has not to stop playing. In order to achieve this goal, those steps are executed :
A test can be done with the stream : http://dash.akamaized.net/dash264/TestCases/10a/1/iis_forest_short_poem_multi_lang_480p_single_adapt_aaclc_sidx.mpd
Nico