summaryrefslogtreecommitdiff
path: root/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/large-video-mutes-onplaying.html
blob: 38fb32552234feb08a9d85485a5b91a2b34dc689 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<html>
<head>
<script>
    function handlePlaying() {
        try {
            window.webkit.messageHandlers.testHandler.postMessage("playing");
        } catch(e) {
        }
        document.querySelector("video").muted = true;
    }
</script>
</head>
<body>
    <video autoplay src="large-video-with-audio.mp4" width=640 height=480 onplaying=handlePlaying()></video>
</body>
</html>