#MediaError example

When errors occur using the <audio> and <video> elements, the resulting error is described using a MediaError object. This example shows to detect these errors and how to interpret the information provided in the element’s error attribute.

See the example live.

MediaError.message support is available starting in Firefox 53.