Skip to content
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

alternate audio track support on live stream cowork along with @sergiojm and @fredvb #860

Merged
merged 20 commits into from
Dec 19, 2016

Conversation

mangui
Copy link
Member

@mangui mangui commented Dec 2, 2016

  • support alternate audio tracks on live stream
  • support discontinuity on alternate audio tracks
  • ensure that alt audio VoD stream are still working

test page : http://streambox.fr/mse/hls.js.alt-audio-live/demo/

@mangui mangui force-pushed the sergiojm-live-alt-audio-inspired_on_fredvb_and_pull_700 branch 2 times, most recently from 5670569 to 328535d Compare December 6, 2016 16:33
@mangui mangui changed the title Sergiojm live alt audio inspired on fredvb and pull 700 alternate audio track support on live stream cowork along with @sergiojm and @fredvb Dec 6, 2016
@mangui mangui force-pushed the sergiojm-live-alt-audio-inspired_on_fredvb_and_pull_700 branch from 7c15356 to 6f93ea5 Compare December 7, 2016 14:27
@mangui
Copy link
Member Author

mangui commented Dec 7, 2016

testable with your streams here :http://streambox.fr/mse/hls.js.alt-audio-live/demo/

feedback welcome before inclusion into v0.6.x / master

fredvb and others added 20 commits December 19, 2016 18:11
Changing BUFFER_FLUSH on audio with alternative audio
On Live alt audio if we FLUSH Buffer imediatly can hold the play and delay that can lead to a moment that Alt audio is not available anymore
Also now if it user pauses, gets away from live, switch audio track, would not break cause it will wait until it has a valid frag to flush
…en new audio fragment matching with currentTime has been found

=> speed up and smooth audio track switch
…K_SWITCHED

on AUDIO_TRACK_SWITCHING on main audio track, flush all audio and reschedule fragment loading
on AUDIO_TRACK_SWITCHED on alt audio track, use video.buffered to schedule fragment loading
…O_TRACK_SWITCHED

on AUDIO_TRACK_SWITCHING on alt audio track, schedule audio fragment loading
try to load audio fragment matching with currentTime to speed up audio track switch
only trigger AUDIO_TRACK_SWITCHED once we have loaded audio fragment matching with media.currentTime
handle audio live playlists out of sync with main live playlist
…ate if there are really pending data available
@mangui mangui force-pushed the sergiojm-live-alt-audio-inspired_on_fredvb_and_pull_700 branch from c2d788d to 59e63bc Compare December 19, 2016 17:12
@mangui mangui merged commit 3a3743e into master Dec 19, 2016
@mangui
Copy link
Member Author

mangui commented Dec 19, 2016

feature merged, and testable on demo page, feedback welcome

@tchakabam tchakabam deleted the sergiojm-live-alt-audio-inspired_on_fredvb_and_pull_700 branch February 5, 2018 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants