Ensure that the `done` event is triggered even if the segment does not contain audio/video data
Fixes videojs/mux.js#194
This PR also makes the output type of the data events more consistent. If remux === true and both audio and video are specified as tracks in the PMT, the output type will always be combined even if the particular segment is missing audio or video data.
This change primarily makes sure that the transmuxer doesn't get stuck in a state waiting for content that will never come. It doesn't necessarily guarantee the outputted fmp4 will play in the browser without issue because the init segment will say that the fragment will contain both tracks even if one has no data.
e.g. chrome://media-internals may have an error similar to
Media segment did not contain any coded frames for track 257, mismatching initialization segment. Therefore, MSE coded frame processing may not interoperably detect discontinuities in appended media.
Woohoo! Thank you!
@mjneil can you find a spare minute and add a test?
The issue seems to still exist - was this PR abandoned or just postponed?