-
Notifications
You must be signed in to change notification settings - Fork 424
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
Changing codecs causes playback to stop #1546
Comments
Hi @daveisfera it looks like a codec and container switch is happening without specifying all the codecs within the
I think a next step would be to put both codecs in that attribute and see if that allows for a successful change. |
Moved this to VHS as there seems to be some room for improvement on codec detection, as this media works in Safari and hls.js |
Sorry, I made those examples as well and meant to post them here, but forgot to get back to that. For one of them, it doesn't play at all and the other it still has the same problem: https://raw.githubusercontent.com/daveisfera/hls_switch/784ca7d2a4eff321c2ae3b1c67d50704ef466d42/primary_codec_down_both.m3u8 |
Gotcha, thanks for the follow up. I was hoping this might help allow for a |
I traced the use of the |
Description
Safari and HLS.js will playback video when the codec switches, but Video.js shows an error.
Reduced test case
https://raw.githubusercontent.com/daveisfera/hls_switch/1e04cd07f7fc3077912418584ae3e7b495b224d6/primary_codec_up.m3u8
Steps to reproduce
Another example with switching from H.265 to H.264:
https://raw.githubusercontent.com/daveisfera/hls_switch/1e04cd07f7fc3077912418584ae3e7b495b224d6/primary_codec_down.m3u8
NOTE: Safari won't play directly from GitHub because it loads the actual file contents, but if you serve the files in that repo from a web server, then it will show that Safari handles this without issue
Errors
What version of Video.js are you using?
8.17.4
Video.js plugins used.
N/A
What browser(s) including version(s) does this occur with?
Chrome 129.0.6668.72 and Safari 18.0
What OS(es) and version(s) does this occur with?
macOS 15.0
The text was updated successfully, but these errors were encountered: