Unplugging a USB headset mid-capture can break capture with getUserMedia

NEW
Unassigned

Status

()

Core
WebRTC: Audio/Video
P2
normal
Rank:
19
a month ago
7 days ago

People

(Reporter: Hani Yacoub, Unassigned, NeedInfo)

Tracking

59 Branch
Unspecified
Windows 10
Points:
---

Firefox Tracking Flags

(firefox59 affected)

Details

(Reporter)

Description

a month ago
[Affected versions]: 
Nightly 59.0a1

[Affected platforms]:
Platforms: Windows 10 x 64

[Steps to reproduce]:
1. Load: https://mozilla.github.io/webrtc-landing/gum_test.html
2. Make sure that the USB headset is unplugged.
2. Click on “Audio + Video” and accept the webcam and microphone prompt.
3. Uncheck the "Muted" box.
4. Plug the USB headset.
5. Unplug the USB headset.

[Expected result]:
Unplugging a USB headset mid-capture can break capture with getUserMedia

[Actual result]:
The audio is captured, and output is available from the proper device each time.

[Note]:
On Ubuntu 16.04 the USB reconnect, works only if you select the correct source after re plugging the USB headset.
(Reporter)

Comment 1

a month ago
The same issue occurred on Windows 7 using USB headset and also using TRRS headset.

Updated

a month ago
Rank: 19
Priority: -- → P2
We have caught the same issue as comment 0 on Ubuntu 15.04. (the capture freezes when usb is unplugged/plugged back in). 
On Ubuntu 14.04 the issue is not reproducible.

Comment 3

17 days ago
Same issue on Android devices: the incoming video (including own preview) freezes when the TRRS headset is unplugged (TRRS Headset LG). Video output continues to work. The problem is fixed by refreshing the page.
Devices:
Huawei Honor 8 (Android 7.0)
HTC Desire 820 (Android 6.0.1)
(Reporter)

Comment 4

17 days ago
I just noticed that the expected result and the actual results are reversed.
Sorry for that.
I can repro this bug with these STRs

1. Load: https://mozilla.github.io/webrtc-landing/gum_test.html
2. Make sure that the USB headset is unplugged.
3. Click on “Audio + Video” and accept the webcam and microphone prompt.
4. Plug the USB headset.

The bug is similar to bug 1384805. After the headset is plugged in, there is no callback from AudioCallbackDriver / cubeb anymore.

Chun-Min, could you help check this problem?
Flags: needinfo?(cchang)
You need to log in before you can comment on or make changes to this bug.