Title: [200978] trunk/Tools
Revision
200978
Author
jer.no...@apple.com
Date
2016-05-16 16:19:36 -0700 (Mon, 16 May 2016)

Log Message

API test WebKit2.MSEIsPlayingAudio timing out after r200951
https://bugs.webkit.org/show_bug.cgi?id=157748

Reviewed by Eric Carlson.

The file-with-mse.html testcase only calls play() once it's own XHR loading is complete; the
"user gesture" check fails at that point.  Call play() up front; playback will begin as soon
as enough data is loaded.

* TestWebKitAPI/Tests/WebKit2/file-with-mse.html:

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (200977 => 200978)


--- trunk/Tools/ChangeLog	2016-05-16 23:11:08 UTC (rev 200977)
+++ trunk/Tools/ChangeLog	2016-05-16 23:19:36 UTC (rev 200978)
@@ -1,3 +1,16 @@
+2016-05-16  Jer Noble  <jer.no...@apple.com>
+
+        API test WebKit2.MSEIsPlayingAudio timing out after r200951
+        https://bugs.webkit.org/show_bug.cgi?id=157748
+
+        Reviewed by Eric Carlson.
+
+        The file-with-mse.html testcase only calls play() once it's own XHR loading is complete; the
+        "user gesture" check fails at that point.  Call play() up front; playback will begin as soon
+        as enough data is loaded.
+
+        * TestWebKitAPI/Tests/WebKit2/file-with-mse.html:
+
 2016-05-16  Enrica Casucci  <enr...@apple.com>
 
         Remove unused initializer for WebEvent on iOS.

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit2/file-with-mse.html (200977 => 200978)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit2/file-with-mse.html	2016-05-16 23:11:08 UTC (rev 200977)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit2/file-with-mse.html	2016-05-16 23:19:36 UTC (rev 200978)
@@ -7,6 +7,7 @@
 
       function playVideo()
       {
+          document.getElementById('test-video').play();
           request = new XMLHttpRequest();
           request.responseType = 'arraybuffer';
           request.open('GET', 'test-mse.mp4', true);
@@ -26,13 +27,7 @@
       {
           var sourceBuffer = source.addSourceBuffer('video/mp4;codecs="avc1.4D4001,mp4a.40.2"');
           sourceBuffer.appendBuffer(request.response);
-          sourceBuffer.addEventListener('updateend', updateend);
       }
-
-      function updateend(event)
-      {
-          document.getElementById('test-video').play();
-      }
   </script>
 </head>
 <body>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to