I want to display a custom error message when the browser supports HTML5 and videos but the given video format(.avi, .wma etc) is not supported by the browser.
The below code displays error message when the browser does not support Video tag
<html>
<body>
<video controls>
<source src="Wildlife.wma" type="video/wma">
<source src="Wildlife.ogg" type="video/ogg">
<source src="Wildlife.webm" type="video/webm">
Your browser doesn't support video, you may download the
/* some message like "wma format is not supported by the browser"*/
</video>
</body>
</html>
I want to add a custom error message, when the format of the video alone is not supported by the browser