4 <title>HTML
5 Change H
.264 Video Test
</title>
6 var changeVideoInterval
;
7 var changeVideoCounter
= 0;
9 function changeVideo() {
11 if (changeVideoCounter
== 40) {
12 alert('40 video changes done. Test over');
13 window
.clearInterval(changeVideoInterval
);
16 var video
= document
.getElementById('video');
18 video
.src
= 'bear-1280x720.mp4?counter=' +
19 changeVideoCounter
.toString();
22 video
.currentTime
= 1;
30 var video
= document
.getElementById('video');
32 video
.currentTime
= 1;
33 changeVideoInterval
= setInterval(changeVideo
, 200);
38 <body onload='onLoad();'
> <b> This test tests the case where in H
.264 H/W
39 decoded videos are added and removed a number of times from the page,
40 while they are playing.
<br> This should not cause the browser to hang.
42 <video id='video' width=
320 height=
240 src='bear-
1280x720.mp4'