New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 733893 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Jun 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Feature



Sign in to add a comment

Fake mic is unreliable

Reported by ben.brow...@gmail.com, Jun 16 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0

Steps to reproduce the problem:
1. Start Chrome with the '--use-fake-device-for-media-stream' flag.
1. Go to https://webrtc.github.io/samples/src/content/getusermedia/volume/
2. See the fake mic volume indication
3. Replace the url in the same tab with https://webrtc.github.io/samples/src/content/peerconnection/pc1/
4. Create a call - Click on Start, Call, Hang Up.
5. Replace the url in the same tab with https://webrtc.github.io/samples/src/content/getusermedia/volume/
6. See that the volume of the fake mic is 0.

What is the expected behavior?
The fake mic volume should change.

What went wrong?
Volume is 0.

Did this work before? No 

Does this work in other browsers? N/A

Chrome version: 59.0.3071.86  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version:
 

Comment 1 by guidou@chromium.org, Jun 17 2017

Components: -Blink>GetUserMedia Blink>GetUserMedia>Mic
Labels: Needs-Triage-M59
Labels: M61 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
Able to reproduc the issue using latest stable #59.0.3071.104 on Win 10 , Mac 10.12.4 and Ubuntu 14.04 as well.

Note: Observing the same behavior since M45. Hence considering this issue as Non-Regression issue and untriaged the issue so that it get's addressed.

Unable to launch the older builds (Ex: M30).

Issue is seen in M61 as well.

Thanks!!

Comment 4 by ossu@chromium.org, Jun 19 2017

Status: Available (was: Untriaged)
AFAIK --use-fake-device-for-media is there only for testing, though I may be wrong. How are you using it?

IIRC, Chrome's browser tests each get a new process to run in, to avoid any state changes in one affecting the other. From what I can see, this is what's happening here: the FakeAudioInputDevice has a BeepSource that is generally set to automatically generate beeps. Once the peerconnection page is loaded, that code instead instructs the BeepSource to manually trigger beeps in sync with the video. Once that's happened, the BeepSource will no longer automatically generate beeps and the volume test page will show zero.

I've changed this to Available for now. I'm not sure if making FakeAudioInputSource more generally reliable is something we want to do, though.
Cc: phoglund@chromium.org mcasas@chromium.org solenberg@chromium.org ossu@chromium.org
Labels: -Type-Bug -Needs-Triage-M59 -M61 Type-Feature
Status: WontFix (was: Available)
Given that use-fake-device-for-media is a flag intended for tests only (it avoids the need to grant camera/microphone permissions), I don't think you can have the expectations given in the initial report. The flag does not emulate a microphone but simply allows the user to use WebRTC on machines with no real audio/video hardware.

Sign in to add a comment