MediaRecorder in Firefox does not work with a stream created with navigator.mediaDevices.getUserMedia({audio:false, video:true})
Categories
(Core :: Audio/Video: Recording, defect, P3)
Tracking
()
People
(Reporter: thomas.cruz, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:89.0) Gecko/20100101 Firefox/89.0
Steps to reproduce:
Just used the code from webrtc samples and changed the constraints have audio:false
https://github.com/webrtc/samples/blob/gh-pages/src/content/getusermedia/record/js/main.js
Got a stream with navigator.mediaDevices.getUserMedia({audio:false, video:true})
Tried to record this stream with MediaRecorder api
Actual results:
Works in Chrome/Chromium but not in Firefox.
In Chrome/Chromium a file containing the recorded webcam video is created and downloaded
Expected results:
A file containing the recorded webcam video should be created and downloaded
Comment 1•4 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Recording' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
| Reporter | ||
Comment 2•4 years ago
|
||
Error also happens when mediaRecorder is running and I run mediaStream.getAudioTracks()[0].enabled = false; to mute the microphone
| Reporter | ||
Comment 3•4 years ago
|
||
(In reply to thomas.cruz from comment #2)
Error also happens when mediaRecorder is running and I run mediaStream.getAudioTracks()[0].enabled = false; to mute the microphone
By "Error" I mean a file is created and downloaded but it cannot be played by any media player (corrupt file)
Comment 4•4 years ago
|
||
I can reproduce this following the steps in comment 0. Works as expected if the MIME type passed to the MediaRecorder ctor is changed to video/webm;codecs=vp8 (i.e. opus removed). Bug 1699235 may be related.
Description
•