mediacapture-record icon indicating copy to clipboard operation
mediacapture-record copied to clipboard

MediaRecorder in detached contexts

Open youennf opened this issue 5 years ago • 2 comments

As illustrated by https://jsfiddle.net/863njp7y/, MediaRecorder implementations do not agree in behavior of detached frames MediaRecorders. MediaRecorder.start is throwing with different errors (InvalidStateError, NotAllowedError, SecurityError) in tested browsers. MediaRecorder.stop is throwing in Chrome but not in Firefox and Safari. I did not try resume/pause but I guess they might have similar issues.

https://jsfiddle.net/q4t5sLnc/ checks MediaRecorder.state in that context. Firefox and Safari go to inactive while Chrome is keeping with recording.

youennf avatar Oct 07 '20 09:10 youennf

There is a WPT test for MediaRecorder constructor which shows also differences between implementations: https://wpt.fyi/results/mediacapture-record/MediaRecorder-detached-context.html?label=experimental&label=master&aligned

youennf avatar Oct 07 '20 16:10 youennf

That WPT test which is passing in Chromium is not adhering to any spec:

assert_equals(err.name, 'NotAllowedError');

There's no mention of NotAllowedError in this spec, so we should probably take action some way or another on this issue.

jan-ivar avatar Nov 11 '20 15:11 jan-ivar