How can I handle errors like 404 in the html5 video tag? I took a look at all available events and the only one that should serve in this case was the onerror , however, when I define it by means of an attribute in the tag. The same can never find my function and in the example of the link there, when it is 404, it does not call the function.
Does anyone know how to get around 404 errors?
Follow the example in jsfiddle . To test the first function is only for "onerror = test ()" in the video tag