[Webkit-unassigned] [Bug 243837] New: MediaRecorder.stop() fires an additional dataavailable event with bytes after MediaRecorder.pause()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 11 11:42:20 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=243837

            Bug ID: 243837
           Summary: MediaRecorder.stop() fires an additional dataavailable
                    event with bytes after MediaRecorder.pause()
           Product: WebKit
           Version: Safari 15
          Hardware: iPhone / iPad
                OS: iOS 15
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebRTC
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: dmannion at propractice.com
                CC: youennf at gmail.com

iPad (8th Generation)
iOS 15.6


See: https://jsfiddle.net/drmannion/b184akv7/1/
1) click Start Camera
2) Click Start Recording
3) Click Pause.  The dataavailable event fired.  In the console, notice that event.data.size is > 0
4) Click Stop.  The dataavailable event fired again.  In the console, notice that event.data.size is again > 0 and we now have two separate blobs.  Expected: event.data.size == 0.

When mediaRecorder.pause() is called, the mediaRecorder must stop gathering data into the current blob.
When mediaRecorder.requestData() is called, the mediaRecoder must fire the dataavailable event passing the current blob of all the data collected so far, then create a new blob.
When mediaRecorder.stop() is called, the mediaRecoder must stop gathering data and fire the dataavailable event passing the current blob of all the data collected so far, which should be empty.

Either mediaRecorder.requestData() is not properly returning all the collected data (Bug# 222285) or additional data is being collected after the mediaRecorder.pause().


Similar or possibly related bugs:
https://bugs.webkit.org/show_bug.cgi?id=222285
https://bugs.webkit.org/show_bug.cgi?id=221916

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220811/49084b8d/attachment-0001.htm>


More information about the webkit-unassigned mailing list