4db512922dc68469ed4b354a2e93adb7e19ba0eb
[WebKit-https.git] / LayoutTests / http / tests / media / video-play-stall.html
1 <video src="http://127.0.0.1:8000/media/video-load-and-stall.cgi?name=../../../media/content/test.mp4&stallAt=80000"></video>
2 <p>Test that dataunavailable, timeupdate and waiting events are sent when media load stalls in the middle.</p>
3 <script src=../../../media/video-test.js></script>
4 <script>
5 waitForEvent('durationchange');
6 waitForEvent('loadedmetadata');
7 waitForEvent('loadedfirstframe');
8 waitForEvent('canshowcurrentframe');
9 waitForEvent('canplay', function () {
10     waitForEvent('dataunavailable');
11     waitForEvent('timeupdate');
12     waitForEventAndEnd('waiting');
13 } );
14 video.play();
15 </script>