-
Notifications
You must be signed in to change notification settings - Fork 7.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
Setting multiple sources programatically doesn't seem to work with "retryOnError", but works with literal <source/> tags #7713
Comments
👋 Thanks for opening your first issue here! 👋 If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
Hey! We've detected some video files in a comment on this issue. If you'd like to permanently archive these videos and tie them to this project, a maintainer of the project can reply to this issue with the following commands:
|
Your test page doesn't load but I'll take a guess that you're calling |
Whoops the read permission got reset. It loads now. I'm calling videojs(element) like so, in a way that to me is analogous with the sample code from README. And with
|
So, the HLS url does return a 200 rather than a 4xx HTTP Status Code. This means that Video.js will still try to load it. Moving it into source elements produces the same results. Retry on error is only set up to switch sources when we get a 4xx status code. Also, @mister-ben's point about not having a |
ok i think i understand the point about |
Description
When setting multiple sources using:
videojs seems to ignore
data-setup='{"sourceOrder": true, "retryOnError": true}'
options. The same two sources set via<source/>
tags work as expected with those options.Test case: https://d3j2hb1k24pksp.cloudfront.net/test.html
Steps to reproduce
Explain in detail the exact steps necessary to reproduce the issue.
player.src([source1, source2])
methodapplication/x-mpegURL
and a URL that will 404video/mp4
with a URL that returns valid mp4 content.Results
Expected
Expect videojs to play the second source video (mp4) after being unable to load the HLS playlist.
Actual
No video plays, loading spinner shows, based on console errors it seems videojs ignores second source provided.
Error output
Additional Information
Please include any additional information necessary here. Including the following:
versions
videojs
7.18.1
browsers
firefox, chrome
OSes
mac os
plugins
n/a
The text was updated successfully, but these errors were encountered: