summaryrefslogtreecommitdiff
path: root/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/large-videos-with-audio-autoplay.html
blob: 3e170ced5d29dea2e0d37bfe8616fded53fa9383 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html>
<script>
    function beganAutoplaying() {
        setTimeout(function() {
            try {
                window.webkit.messageHandlers.testHandler.postMessage("autoplayed");
            } catch(e) {
            }
        }, 0)
    }
</script>
<body>
    <video id="foo" style="width: 480px; height: 320px;"><source src="large-video-with-audio.mp4"></video>
    <video autoplay onplaying=beganAutoplaying() id="bar" style="width: 480px; height: 320px;"><source src="large-video-with-audio.mp4"></video>
    <video id="baz" style="width: 480px; height: 320px;"><source src="large-video-with-audio.mp4"></video>
</body>
<html>