Answers for "play video jquery"

1

jquery video play

$('#videoId').get(0).play()
Posted by: Guest on May-09-2020
0

trigger play video jquery

setTimeout(function(){ jQuery('video').trigger('play'); }, 1000);
Posted by: Guest on October-08-2020
0

create video playlist using jquery

function handler(e) {
	e.preventDefault();
	videotarget = this.getAttribute("href");
	filename = videotarget.substr(0, videotarget.lastIndexOf('.')) || videotarget;
	video = document.querySelector("#video_player video");
	video.removeAttribute("controls");
	video.removeAttribute("poster");
	source = document.querySelectorAll("#video_player video source");
	source[0].src = filename + ".mp4";
	source[1].src = filename + ".webm";
	video.load();
	video.play();    
}
Posted by: Guest on February-12-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language