-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Playback freezes when switching videos with same configuration #7114
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
Comments
Do you get the same Chrome media internals logs from https://hlsjs.video-dev.org/demo/ as you do from the https://videojs-http-streaming.netlify.app/ details shared above? Please share whatever other details you can about the content encoding, cross-player testing, and open-source issues filed. |
The video is encoded on iOS using AVAssetWriter Video.js had another issue but runs into the same issue once that's addressed, but it plays in Safari |
This appears to be a bug in Chrome. Have you filed a chromium issue? |
I opened a bug for Chrome, but I tried it with HLS.js in Safari and it didn't play at all |
I don't see any issues with playback in Safari against latest hls.js https://hlsjs.video-dev.org/demo/?src=https%3A%2F%2Fraw.githubusercontent.com%2Fdaveisfera%2Fhls_switch_same_init%2F9ee116765e3296abc01cd3e530623321336d7755%2Fvideo.m3u8&demoConfig=eyJlbmFibGVTdHJlYW1pbmciOnRydWUsImF1dG9SZWNvdmVyRXJyb3IiOmZhbHNlLCJzdG9wT25TdGFsbCI6ZmFsc2UsImR1bXBmTVA0IjpmYWxzZSwibGV2ZWxDYXBwaW5nIjotMSwibGltaXRNZXRyaWNzIjotMX0= or in 1.5.20 (https://5982f183.hls-js-dev.pages.dev/demo/?src=...) Do you want to file a new bug or provide more info? I just did some tests with vanilla JS/MSE and this issue only shows up in Chrome, but it shows up every time. There is no overlap in the video but as long as Chrome tries to coalesce the discontiguous ranges, a pipeline/decode error occurs at 4 seconds. The ranges would have to be appended at least 0.1s apart (start the second sequence at 4.1 instead of 4), to prevent the media error. But then playback would stall and a seek needed to jump the gap. It's not a worthwhile workaround. Chrome should be able to handle HEVC discontinuities. |
I'm using an Intel Mac with macOS 15.4 and Safari 18.4 (20621.1.15.11.10) Status:
Error:
What other info can I provide to help with that? |
OK. I get a decode error on Intel Mac (Safari 15.6.1) but it has nothing to do with switching; first.m3u8 and second.m3u8 assets also fail. At best I see a frame of video and then the media element displays an error state.
I cannot reproduce the issue on Apple Silicon (tested in M3 MBP and iPhone 16 Pro Max). Please report the issue to Feedback Assistant and share the id.
It would be good to include feedback on that article and sample code. Include as much information about the source movie file as you can (what it was shot on, movie info). |
What version of Hls.js are you using?
1.5.20
What browser (including version) are you using?
Chrome 134.0.6998.118 (Official Build) (x86_64)
What OS (including version) are you using?
macOS 15.3.2
Test stream
https://raw.githubusercontent.com/daveisfera/hls_switch_same_init/9ee116765e3296abc01cd3e530623321336d7755/video.m3u8
Configuration
Additional player setup steps
Using demo page
Checklist
Steps to reproduce
Expected behaviour
Video plays through the switch
What actually happened?
Playback pauses when switch happens
Console output
Chrome media internals output
The text was updated successfully, but these errors were encountered: