-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Fallback video url if default is broken? #6189
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. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Are you provided multiple sources or is this HLS/DASH? If it is HLS/DASH, that should be the behavior already. If it's a list of separate sources, then it'll be ready as part of #1805. |
@BonBonSlick I am trying this in React with video.js v7.8.4 and this is my code:
I am pretty new to this so I might be making some mistake here, feel free to correct me if I missed anything or did something wrong. |
VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) The media could not be loaded, either because the server or network failed or because the format is not supported. MediaError {code: 4, message: "The media could not be loaded, either because the …rk failed or because the format is not supported."}
This is because of default, the first URL is broken, I would like to check all other resolutions before showing an error message.
Eg default is 1080, is broken? Check 720 -> 480 -> 360 -> 240. All are broken? Show error, or even send a report to the api endpoint.
What listener should be called?
Thanks.
The text was updated successfully, but these errors were encountered: