标签:style io ar color 使用 sp on cti bs
<html>
<head>
<title>Simple Video Example</title>
<script>
function playVideo(e) {
var video = document.getElementById(‘video1‘); //video element
var input = document.getElementById(‘videoFile‘); //text box
if (input.value != video.src) {
video.src = input.value;
}
video.load();
video.play();
}
</script>
</head>
<body>
<video id="video1" width="640" height="360" controls >HTML5 video is not supported</video><br />
<input type="text" id="videoFile" size="60" placeholder="Enter video file URL here"/>
<button onclick="playVideo(this);">Play</button>
</body>
</html>
标签:style io ar color 使用 sp on cti bs
原文地址:http://www.cnblogs.com/mysterywho/p/4108406.html