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

fix coalesce stream in FLV transmuxer to account for missing audio data in pending tracks #125

Merged
merged 2 commits into from
Nov 17, 2016

Conversation

mjneil
Copy link
Contributor

@mjneil mjneil commented Oct 18, 2016

If there is an audio and video track in the segment but no audio data, (seen in several playlists with alternate audio tracks and no audio present in the main TS segments.), the CoalesceStream would never finish its flush process and emit a done event. This would cause the player to become stuck waiting to append to the buffer, with no errors.

This change accounts for this possibility and allows CoalesceStream to complete its flush cycle with an empty audio track. I also pulled CoalesceStream out into its own file to help work towards needed project maintenance .

@mjneil mjneil changed the title fix coalesce stream to account for missing audio data in pending tracks fix coalesce stream in FLV transmuxer to account for missing audio data in pending tracks Oct 24, 2016
@gesinger
Copy link
Contributor

Looks good, though it would be good to have some unit tests.

@forbesjo
Copy link
Contributor

forbesjo commented Nov 7, 2016

Looks good to me.

@imbcmdth imbcmdth merged commit 0b2a37d into videojs:master Nov 17, 2016
aN0obIs pushed a commit to aN0obIs/mux.js that referenced this pull request Apr 28, 2017
…ta in pending tracks (videojs#125)

* fix coalesce stream to account for missing audio data in pending tracks

* add test for emitting done event
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.

4 participants