blob: 2ef0dbe905a459303ba2db1ec4f043c13b9fa403 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<!DOCTYPE html>
<html>
<head>
<script src="video-test.js"></script>
<script>
function start() {
video = mediaElement = document.getElementsByTagName('video')[0];
testExpected("video.canPlayType('audio/webm')", "maybe");
testExpected("video.canPlayType('video/webm')", "maybe");
testExpected("video.canPlayType('audio/webm; codecs=vorbis')", "probably");
testExpected("video.canPlayType('video/webm; codecs=vp8,vorbis')", "probably");
endTest();
}
</script>
</head>
<body onload="start()">
<video controls></video>
<p>Test HTMLMediaElement <em>canPlayType()</em> method for webm media containers.</p>
<p>These tests may be expected to fail if the WebKit port does not support the format.</p>
</body>
</html>
|