Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as HTML by Michael S. ( 14 years ago )
<!DOCTYPE html>
<html lang="en">
<head>
<title>HTML5 Video Test</title>
[removed]
function playVideo() {
var video = document.getElementById("video");
var button = document.getElementById("playbutton");
if (video.paused) {
video.play();
button.textContent = "Pause";
} else {
video.pause();
button.textContent = "Play";
}
}
function pauseVideo() {
var video = document.getElementById("video");
video.pause();
}
function rewindVideo() {
var video = document.getElementById("video");
var button = document.getElementById("playbutton");
video.pause();
video.currentTime = 0;
button.textContent = "Play";
}
function skipVideo(value) {
var video = document.getElementById("video");
var button = document.getElementById("playbutton");
video.pause();
video.currentTime += value;
video.play();
button.textContent = "Pause";
}
[removed]
</head>
<body>
<h1>HTML 5 Video Test</h1>
<div id="content">
<video src="http://html5demos.com/assets/dizzy.ogv" id="video">Your browser doesn't support HTML5!</video>
</div>
<button id="playbutton" >Play</button>
<button id="rewindbutton" >Rewind</button>
<button id="skipbutton" >Skip to middle</button>
</body>
</html>
Revise this Paste