hls.js icon indicating copy to clipboard operation
hls.js copied to clipboard

Support delayed create of SourceBuffer

Open fightZy opened this issue 11 months ago • 9 comments

Is your feature request related to a problem? Please describe.

I have an M3U8 playlist with only audio data for the first few seconds, and then both audio and video data are available. At this point, hls.js will report an error because the video sourceBuffer cannot be found. By checking the hls.js code, I learned that the sourceBuffer seems to only be created during initialization based on the track type owned by the first ts file;

image

image

Describe the solution you'd like

Can you support changing existing sourceBuffers based on actual changes in track types? At least for me, I need to adapt to the addition of track types

fightZy avatar Mar 19 '24 08:03 fightZy