By putting multiple sources for your video, if the first fails to load, it will automatically play the next as below:
<video controls>
<source src="myVideo.mp4" type="video/mp4">
<source src="myVideo.webm" type="video/webm">
<p>Your browser doesn't support HTML5 video. Here is
a <a href="myVideo.mp4">link to the video</a> instead.</p>
</video>
See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video