-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Support delayed create of SourceBuffer #6294
Comments
Mixed track configurations like this are not supported as MSE based playback requires all tracks be buffered before the media element will play though the SourceBuffers. Still, you can detach and attach the media element or call Try fixing the issue in your HLS playlist so that each segment includes audio and video. Adding a GAP tag to the segment(s) with only audio will cause them to be skipped allowing for correct setup. |
That's because you need to playback to start on a segment with both tracks (when playback reaches the point where the second track becomes available). You can achieve this by seeking or setting startPosition. |
Okay, this can indeed be played normally from where there is video data, but segments with only audio data at the beginning cannot be played🤔 |
@fightZy how to solve this pr |
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;
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
Additional context
testUrl: https://cos-public.seewo.com/seewo-ms/uwiykxkvhkkjnhoyhmhoowxxlnphihhh.m3u8
The text was updated successfully, but these errors were encountered: