-
Notifications
You must be signed in to change notification settings - Fork 3k
/
video_006.htm
61 lines (50 loc) · 1.68 KB
/
video_006.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE HTML>
<html>
<head>
<title>HTML5 Media Elements: Media plays automatically when 'autoplay' is true.</title>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/html5/video.html#attr-media-autoplay" />
<meta name="assert" content="Media plays automatically when 'autoplay' is true." />
<script type="text/javascript" src="../../../../common/media.js"></script>
<script type="text/javascript">
setFailTimeout(30000);
function do_playing(event)
{
passTest();
}
</script>
</head>
<body>
<pre>
Media plays automatically when 'autoplay' is true.
</pre>
<table id='testtable' border='1'>
<tr>
<td>Test Result</td>
<td>Test Assertion</td>
</tr>
<tr>
<td id='test_0_result'>Waiting ...</td>
<td id='test_0_assertion'>Test passes if the text 'PASS' appears to the left and the text 'Your browser does not support media elements.' does not appear anywhere on this page.</td>
</tr>
</table>
<pre>
http://www.w3.org/TR/html5/video.html#attr-media-autoplay
The autoplay attribute is a boolean attribute. When present, the user
agent (as described in the algorithm described herein) will
automatically begin playback of the media resource as soon as it can do
so without stopping.
</pre>
<div id='testcontent'>
<script type="text/javascript">
document.write(
"<video id='video0' src='" + getVideoURI("/media/movie_5") + "'" +
" onplaying='do_playing(event);' autoplay>"
);
</script>
Your browser does not support media elements.
</video>
</div>
</body>
</html>