I would like my webpage to look for some video files locally first, and then play them from the web if they are not found. This makes sense for me because I am building a kiosk that will run on someone else's wifi (that may be slow). I would like to do something like this:
<video id="video1" width="420">
<source src="c:\website\assets\video\mov_bbb.mp4" type="video/mp4">
<source src="\assets\video\mov_bbb.mp4" type="video/mp4">
Your browser does not support HTML5 video.
</video>
This doesn't work for me because the video tag doesn't like that local pathing. I have seen people online suggesting the following, but I don't really understand how to implement it to solve my problem. Can anyone help?
<input type="file" accept="video/*"/>
<video controls autoplay></video>