How to disable auto-play for video when src is from my local pc?
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;
}