-
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
Handle no-source and broken sources #869
Comments
Are you planning on handling unsupported sources as part of this enhancement? Or is it focussed on missing and broken sources? I ask because your jsbin example mentions unsupported sources but they're not mentioned elsewhere in this issue. If the plan is to unify the handling of no, broken and unsupported sources then I think this would/could address issue #1164 too. |
Yeah, I'd definitely like to include #1164 in this as well. I'm diving in today to get a better idea of what all of it will take. |
Hey @heff. Did you get anywhere with your most recent investigation? Is there anything I can do to help? |
The items here and in the related issues were addressed in version 4.6.0. Please update and try it out! |
Looks like this might actually still be an issue. Here's a JSBin, but in Chrome I get nothing but the loading spinner if there are no sources altogether or the sources are blank. Firefox (sometimes) shows the error. For some reason I can see it in edit mode for JSBin, but not in the standalone-preview mode. |
I think we can handle the "no source" error in each technology. Html5: on vjs.Html5.prototype.eventHandler If we detect the "no source" error, we can trigger a custom event ('srcnotfound') and retry the sources in a handler ('onSrcNotFound'). I have typed it with expected results. Yes, with a test would be better. |
Seems to be fixed in 4.12 |
In the case where no supported sources are supplied to the video tag, the player should show a broken playback image.
View this example to see how different platforms handle the issue.
http://jsbin.com/OXEyuboL/1/edit
Case: no sources supplied at all (#764)
--> Empty video, no icon
Case: sources supplied, none supported or file error (#868)
--> Broken playback icon
In both cases:
See #764 for more discussion around this.
Also see #796 and #798 for a beginning implementation. And #746.
Based on the media-load-algorithm:
It seems a little odd that when no source elements are supported, the player goes into a waiting state instead of firing an error. In order to know that the source selection algorithm failed on source elements you would have to listen for an error on the last source element. I don't think we could manually trigger that error on a source element, so that would make it hard to duplicate this process.
The text was updated successfully, but these errors were encountered: