Title: [237650] trunk
Revision
237650
Author
[email protected]
Date
2018-10-31 13:26:57 -0700 (Wed, 31 Oct 2018)

Log Message

MediaRecorder should fire dataavailable event when all tracks are ended and stop() is called
https://bugs.webkit.org/show_bug.cgi?id=190778
<rdar://problem/45703574>

Patch by YUHAN WU <[email protected]> on 2018-10-31
Reviewed by Youenn Fablet.

Source/WebCore:

Add a include to fix the unified build error.

No tests since no new functionality.

* Modules/webgpu/WebGPUDevice.cpp:

LayoutTests:

Increase the timer of recording to 2 seconds until we support timeslice in order to reduce flakiness.

* http/wpt/mediarecorder/MediaRecorder-dataavailable.html:
* http/wpt/mediarecorder/MediaRecorder-mock-dataavailable.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (237649 => 237650)


--- trunk/LayoutTests/ChangeLog	2018-10-31 20:23:38 UTC (rev 237649)
+++ trunk/LayoutTests/ChangeLog	2018-10-31 20:26:57 UTC (rev 237650)
@@ -1,3 +1,16 @@
+2018-10-31  YUHAN WU  <[email protected]>
+
+        MediaRecorder should fire dataavailable event when all tracks are ended and stop() is called
+        https://bugs.webkit.org/show_bug.cgi?id=190778
+        <rdar://problem/45703574>
+
+        Reviewed by Youenn Fablet.
+
+        Increase the timer of recording to 2 seconds until we support timeslice in order to reduce flakiness.
+
+        * http/wpt/mediarecorder/MediaRecorder-dataavailable.html:
+        * http/wpt/mediarecorder/MediaRecorder-mock-dataavailable.html:
+
 2018-10-31  Zach Li  <[email protected]>
 
         Add credit card autofill button

Modified: trunk/LayoutTests/http/wpt/mediarecorder/MediaRecorder-dataavailable.html (237649 => 237650)


--- trunk/LayoutTests/http/wpt/mediarecorder/MediaRecorder-dataavailable.html	2018-10-31 20:23:38 UTC (rev 237649)
+++ trunk/LayoutTests/http/wpt/mediarecorder/MediaRecorder-dataavailable.html	2018-10-31 20:26:57 UTC (rev 237650)
@@ -44,7 +44,7 @@
         drawSomethingOnCanvas();
         setTimeout(() => {
             recorder.stop();
-        }, 500)
+        }, 2000)
     }, 'MediaRecorder will fire a dataavailable event with a blob data for a video-only stream when stop() is called');
 
     async_test(t => {
@@ -65,7 +65,7 @@
         setTimeout(() => {
             recorder.stop();
             osc.stop();
-        }, 500);
+        }, 2000);
     }, 'MediaRecorder will fire a dataavailable event with a blob data for a audio-only stream when stop() is called');
 
     async_test(t => {
@@ -93,7 +93,7 @@
         setTimeout(() => {
             recorder.stop();
             osc.stop();
-        }, 500);
+        }, 2000);
     }, 'MediaRecorder will fire a dataavailable event with a blob data for a video-audio stream when stop() is called');
 
 </script>

Modified: trunk/LayoutTests/http/wpt/mediarecorder/MediaRecorder-mock-dataavailable.html (237649 => 237650)


--- trunk/LayoutTests/http/wpt/mediarecorder/MediaRecorder-mock-dataavailable.html	2018-10-31 20:23:38 UTC (rev 237649)
+++ trunk/LayoutTests/http/wpt/mediarecorder/MediaRecorder-mock-dataavailable.html	2018-10-31 20:26:57 UTC (rev 237650)
@@ -41,7 +41,7 @@
         drawSomethingOnCanvas();
         setTimeout(() => {
             recorder.stop();
-        }, 500);
+        }, 2000);
     }, 'MediaRecorder will fire a dataavailable event which only contains video buffers for a video-only stream when stop() is called');
 
     async_test(t => {
@@ -66,7 +66,7 @@
         setTimeout(() => {
             recorder.stop();
             osc.stop();
-        }, 500);
+        }, 2000);
     }, 'MediaRecorder will fire a dataavailable event which only contains audio buffers for a audio-only stream when stop() is called');
 
     async_test(t => {
@@ -98,7 +98,7 @@
         setTimeout(() => {
             recorder.stop();
             osc.stop();
-        }, 500);
+        }, 2000);
     }, 'MediaRecorder will fire a dataavailable event which only contains both video and audio buffers when stop() is called');
 
 </script>

Modified: trunk/Source/WebCore/ChangeLog (237649 => 237650)


--- trunk/Source/WebCore/ChangeLog	2018-10-31 20:23:38 UTC (rev 237649)
+++ trunk/Source/WebCore/ChangeLog	2018-10-31 20:26:57 UTC (rev 237650)
@@ -1,3 +1,17 @@
+2018-10-31  YUHAN WU  <[email protected]>
+
+        MediaRecorder should fire dataavailable event when all tracks are ended and stop() is called
+        https://bugs.webkit.org/show_bug.cgi?id=190778
+        <rdar://problem/45703574>
+
+        Reviewed by Youenn Fablet.
+
+        Add a include to fix the unified build error.
+
+        No tests since no new functionality.
+
+        * Modules/webgpu/WebGPUDevice.cpp:
+
 2018-10-26  Jer Noble  <[email protected]>
 
         [EME][Cocoa] Cannot play unmuxed video and audio fMP4 streams encrypted with different keys via MSE

Modified: trunk/Source/WebCore/Modules/webgpu/WebGPUDevice.cpp (237649 => 237650)


--- trunk/Source/WebCore/Modules/webgpu/WebGPUDevice.cpp	2018-10-31 20:23:38 UTC (rev 237649)
+++ trunk/Source/WebCore/Modules/webgpu/WebGPUDevice.cpp	2018-10-31 20:26:57 UTC (rev 237650)
@@ -28,6 +28,8 @@
 
 #if ENABLE(WEBGPU)
 
+#include "WebGPUAdapter.h"
+
 namespace WebCore {
 
 Ref<WebGPUDevice> WebGPUDevice::create(ScriptExecutionContext&, Ref<WebGPUAdapter>&& adapter)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to