Tag:rip strong document title Success solution post cti name
Requirements: There are 2 normal buttons on the page, A, B. There is also a video tag that can successfully play out videos. I want the effect is, click the A button, the video starts playing, click the B button, video playback Stop!!! <br><br>---------------------------------------------------- Code---------------------------------------------------------------------------<br><br><! DOCTYPE html> [Solution]:
var myvideo = document.getelementsbytagname (' video ') [0]; can be converted to document.getElementById (' videoid '); <video src= "mymovie.m4v" poster= "poster.jpg" id= "videoid" ></video>[solution] amount. Come late ... Stop the words ... myvideo.currenttime = 0; Property sets or returns the current position (in seconds) of audio/video playback. When this property is set, playback jumps to the specified location. Myvideo.pause ();------Solution-------------------- Mark
JS control HTML5 video playback and stop in the "Video" tab