Closed Bug 1352557 Opened 7 years ago Closed 7 years ago

media.navigator.audio.full_duplex broken on Linux with Alsa

Categories

(Core :: WebRTC: Audio/Video, defect)

52 Branch
Unspecified
Linux
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: mozilla, Unassigned)

Details

(Whiteboard: [needinfo padenot 4/3/17])

Steps to reproduce:

1. Install QubesOS
2. Run firefox inside one of the Qubes VM.
3. Go to https://jsfiddle.net/W569n/3/
4. Press "click here to start stream"


Actual results:

An error comes up : NotFoundError: The object can not be found here

Expected results:

Firefox should be able to find the audio input streams properly and ask the user which one to share with the page.
Thanks to some help on IRC, I've been able to pinpoint the problem to an interaction between ALSA and the media.navigator.audio.full_duplex option. If I disable this option, firefox starts acting as expected. I have a patch written that deactivate full_duplex when FF is compiled with USE_ALSA.
Component: General → WebRTC
Product: Firefox → Core
Component: WebRTC → WebRTC: Audio/Video
Not sure who was involved in the IRC conversation mentioned in comment 1.
Flags: needinfo?(padenot)
Summary: getUserMedia broken on Linux with Qubes OS → media.navigator.audio.full_duplex broken on Linux with Alsa
Whiteboard: [needinfo padenot 4/3/17]
That was me, in #firefox
Flags: needinfo?(padenot)
So, official Mozilla builds of Firefox don't come with full duplex alsa support, nor will they in the future. Thus a wontfix.

But there is code to support it in our audio backend, [1], and I understand that some linux distros already build their Firefox releases with alsa support enabled. You can enable alsa for your own local build by adding `ac_add_options --enable-alsa` to your ".mozconfig" file.

Don't expect non-full-duplex to work for much longer, with alsa or otherwise.

Are there issues with the full-duplex alsa implementation, patches are accepted against cubeb, again, the repo at [1].

[1] https://github.com/kinetiknz/cubeb/blob/52b467d4f0993eb3949d97934aa254b0522bd0a9/src/cubeb_alsa.c#L1006
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.