Open Bug 1718942 Opened 4 years ago Updated 3 years ago

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)

Firefox 89
defect

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

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.

Component: Untriaged → Audio/Video: Recording
Product: Firefox → Core

Error also happens when mediaRecorder is running and I run mediaStream.getAudioTracks()[0].enabled = false; to mute the microphone

(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)

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.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Unspecified → All
Priority: -- → P3
Hardware: Unspecified → All
See Also: → 1699235
See Also: → 1705887
You need to log in before you can comment on or make changes to this bug.