blob: da9cb1c07f1fdda3921051f807936728c4a9b353 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<html>
<head>
<script>
function pageLoaded() {
document.getElementById("video").play();
try {
window.webkit.messageHandlers.testHandler.postMessage("loaded");
} catch(e) { }
}
function play() {
document.getElementById("video").play();
}
</script>
</head>
<body onload="pageLoaded()">
<button onclick="play()">Play</button>
<video id="video" src="test.mp4" />
</body>
</html>
|