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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 16 06:07:24 PDT 2022


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

--- Comment #2 from youenn fablet <youennf at gmail.com> ---
Hi David,

As I see it, when calling pause, we stop recording any data.
But there is still some data in transit. For instance, we do not flush audio/video encoders so there might still be some data being encoded and not yet written.
Ditto for the writer that gets the compressed buffer and creates the actual media stream from it.
When stopping, we actually flush encoders and writer to get all available data.
This probably explains why there is some remaining data available when stop is being called.

Can you describe what the impact of this behavior is?

-- 
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/20220816/7986964e/attachment.htm>


More information about the webkit-unassigned mailing list