navigator.getUserMedia throws MediaStreamError

NEW
Unassigned

Status

()

Core
WebRTC: Audio/Video
P2
normal
Rank:
15
a year ago
3 months ago

People

(Reporter: m.zdila, Unassigned, NeedInfo)

Tracking

({testcase})

50 Branch
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

a year ago
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.100 Safari/537.36

Steps to reproduce:

Works in FF 49, broken in FF 50. Tested on Linux and Mac.

Calling navigator.getUserMedia for the first time with { audio: true, video: { facingMode: 'user' } } succeeds.

Second call to navigator.getUserMedia with { audio: true, video: false } succeeds only if user already selected "Always share" in the permissions dialog. 

If not but user manually allows the acces to the mic then it fails with: MediaStreamError { name: "NotReadableError", message: "Failed to allocate audiosource", constraint: "", stack: "" }.

Comment 1

a year ago
Could you provide a testcase (on jsfiddle eg), please.
Flags: needinfo?(m.zdila)
Keywords: testcase-wanted
(Reporter)

Comment 2

a year ago
https://plnkr.co/edit/Bxc9HUfAwSv0OEQmpa2R
I can reproduce this issue on Mozilla/5.0 (Windows NT 6.3; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0

Placing in core audio/video
Component: Untriaged → Audio/Video
Product: Firefox → Core
Status: UNCONFIRMED → NEW
Ever confirmed: true

Comment 4

a year ago
(In reply to m.zdila from comment #2)
> https://plnkr.co/edit/Bxc9HUfAwSv0OEQmpa2R

I don't understand the STR? After clicking Video+Audio and allowing the devices, what I need to do?

Comment 5

a year ago
(In reply to Justin [:JW_SoftvisionQA] from comment #3)
> I can reproduce this issue on Mozilla/5.0 (Windows NT 6.3; WOW64; rv:53.0)
> Gecko/20100101 Firefox/53.0
> 
> Placing in core audio/video

Justin, Could you give me clear STR, steps one by one, please.
Flags: needinfo?(jwilliams)
Yes np

STR:
1. Go to Test Site https://plnkr.co/edit/Bxc9HUfAwSv0OEQmpa2R
2. Open the Browser Console (ctrl shift j)
3. Run the test case and select Video + Audio and Allow the settings
4. Select Audio Only and Allow the settings

Expected:
Video goes away and audio is still being used.

Actual:
Video stays. Notice the error thrown in the Browser Console
Flags: needinfo?(jwilliams)

Comment 7

a year ago
I tried but I don't see the error message in the console.
(In reply to Loic from comment #7)
> I tried but I don't see the error message in the console.

Here is a video of what we are seeing Loic.

https://jwilliams-softvision.tinytake.com/sf/MTE1NDk3OV80NTEyMTY1
Flags: needinfo?(epinal99-bugzilla2)
This error is not seen on Chrome or ie.

Updated

a year ago
Rank: 15
Component: Audio/Video → WebRTC: Audio/Video
Priority: -- → P1

Comment 10

a year ago
I can't reproduce it on my machine with FF50 on Win 7, maybe the issue is related to some device drivers/hardware.
Flags: needinfo?(epinal99-bugzilla2)

Updated

a year ago
Keywords: testcase-wanted → testcase
Mass change P1->P2 to align with new Mozilla triage process
Priority: P1 → P2
You need to log in before you can comment on or make changes to this bug.