[Modern Media Controls] Turn media/modern-media-controls/ios-inline-media-controls...
[WebKit-https.git] / LayoutTests / media / video-loop.html
index f37cd68..4e44416 100644 (file)
     
             function play()
             {
+                if (video.readyState < HTMLMediaElement.HAVE_METADATA) {
+                    setTimeout(play, 100);
+                    return;
+                }
+
                 if (++playCount > 1)
                     return;