[Webkit-unassigned] [Bug 221916] New: MediaRecorder.Stop() does not work correctly when recording has been paused.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Feb 15 12:58:02 PST 2021
https://bugs.webkit.org/show_bug.cgi?id=221916
Bug ID: 221916
Summary: MediaRecorder.Stop() does not work correctly when
recording has been paused.
Product: WebKit
Version: Safari Technology Preview
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Major
Priority: P2
Component: WebRTC
Assignee: webkit-unassigned at lists.webkit.org
Reporter: dmannion at propractice.com
CC: youennf at gmail.com
MediaRecorder::stopRecordingInternal() is not setting the state = RecordingState::Inactive when the current state == RecordingState::Paused. The current code:
316 if (state() != RecordingState::Recording) {
317 completionHandler();
318 return;
319 }
should probably be:
316 if (state() === RecordingState::Inactive) {
317 completionHandler();
318 return;
319 }
The problem can be reproduced using these steps:
1) Start Recording
2) Pause Recording
3) Stop Recording
4) Start Recording
Actual result: After step 3, the status is still paused. Also, an exception is thrown and the browser reloads when trying to re-start recording.
Expected result: After step 3, the status should be inactive. Also recording should re-start without error.
--
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/20210215/5a7f997f/attachment.htm>
More information about the webkit-unassigned
mailing list