-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MediaRecorder.stop() fires an additional dataavailable event with byt…
…es after MediaRecorder.pause() https://bugs.webkit.org/show_bug.cgi?id=243837 rdar://problem/98565949 Reviewed by Eric Carlson. When fetching recorded data, make sure to flush encoders to get all possible data. This allows to ensure that we get as much data as possible when requestData is called. This aligns with other browsers behavior. Covered by added test. * LayoutTests/http/wpt/mediarecorder/pause-recording-expected.txt: * LayoutTests/http/wpt/mediarecorder/pause-recording.html: * Source/WebCore/platform/mediarecorder/cocoa/AudioSampleBufferCompressor.h: (WebCore::AudioSampleBufferCompressor::finish): (WebCore::AudioSampleBufferCompressor::flush): * Source/WebCore/platform/mediarecorder/cocoa/AudioSampleBufferCompressor.mm: (WebCore::AudioSampleBufferCompressor::flushInternal): (WebCore::AudioSampleBufferCompressor::finish): Deleted. * Source/WebCore/platform/mediarecorder/cocoa/MediaRecorderPrivateWriterCocoa.mm: (WebCore::MediaRecorderPrivateWriter::fetchData): * Source/WebCore/platform/mediarecorder/cocoa/VideoSampleBufferCompressor.h: (WebCore::VideoSampleBufferCompressor::finish): (WebCore::VideoSampleBufferCompressor::flush): * Source/WebCore/platform/mediarecorder/cocoa/VideoSampleBufferCompressor.mm: (WebCore::VideoSampleBufferCompressor::flushInternal): (WebCore::VideoSampleBufferCompressor::finish): Deleted. Canonical link: https://commits.webkit.org/253529@main
- Loading branch information
Showing
7 changed files
with
63 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters