blob: f31605143c08a49c1e54178c74a70e47a20b2ec1 [file] [log] [blame]
<!--
Loads lots of videos to make sure that we don't deadlock somewhere
while loading lots of videos. We try a variety of video formats and
containers to try to cover different read patterns.
-->
<html>
<body onload="RunTest();">
<video controls preload=auto src="bear-320x180-hi10p.mp4?A"></video><br>
<video controls preload=auto src="bear-320x180-hi10p.mp4?B"></video><br>
<video controls preload=auto src="bear-320x180-hi10p.mp4?C"></video><br>
<video controls preload=auto src="bear-320x180-hi10p.mp4?D"></video><br>
<video controls preload=auto src="bear-320x180-hi10p.mp4?E"></video><br>
<video controls preload=auto src="bear-320x180-hi10p.mp4?F"></video><br>
<video controls preload=auto src="bear-1280x720.mp4"></video><br>
<video controls preload=auto src="bear-320x240.webm"></video><br>
<video controls preload=auto src="bear.mp4"></video><br>
<video controls preload=auto src="bear-vp8a.webm"></video><br>
<video controls preload=auto src="bear-320x240-video-only.webm"></video><br>
<video controls preload=auto src="bear-320x240-vp9_profile2.webm"></video><br>
<video controls preload=auto src="bear-320x180-hi12p-vp9.webm"></video><br>
<video controls preload=auto src="bbb-320x240-2video-2audio.mp4"></video><br>
<video controls preload=auto src="bear-1280x720-av_with-aud-nalus_frag.mp4"></video><br>
<video controls preload=auto src="bear-vp8-webvtt.webm"></video><br>
</body>
<script>
function CheckIfDone() {
console.log("Done?");
var players = document.getElementsByTagName("video");
for (var i = 0; i < players.length; i++) {
if (players[i].readyState < 3) return;
}
document.title = "ENDED";
}
function RunTest() {
var players = document.getElementsByTagName("video");
for (var i = 0; i < players.length; i++) {
players[i].addEventListener('canplay', function(e) { CheckIfDone(); });
}
CheckIfDone();
}
</script>
</html>