How to disable auto-play for video when src is from my local pc?
Replace the iframe for this:
<video class="video-fluid z-depth-1" loop controls muted>
<source src="videos/example.mp4" type="video/mp4" />
</video>
You can set the source of the player as blank string on loading the page, in this way you don't have to switch to video
tag.
var player = document.getElementById("video-player");
player.src = "";
When you want to play a video, just change its src
attribute, for example:
function play(source){
player.src = source;
}