Closed Bug 1504998 Opened 7 years ago Closed 7 years ago

Bluetooth microphone is not recordable after the first call to getUserMedia

Categories

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

62 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1489052

People

(Reporter: naktinis, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:62.0) Gecko/20100101 Firefox/62.0 Steps to reproduce: 1. Paired a bluetooth Sennheiser HD 4.50BTNC headset 2. Load https://mdn.github.io/web-dictaphone/ (but also reproducible with other code using navigator.mediaDevices.getUserMedia, e.g. RecordRTC library) 3. Click "Record" and give the permission to record via the bluetooth headset 4. Wait for a while and click "Stop" Actual results: Nothing was recorded. And nothing can be recorded by repeatedly clicking Record/Stop until I reload the page. Importantly, note that: 1. If I choose to record via my laptop microphone everything works fine 2. After granting the permission for the first time, and AFTER getUserMedia call's its' promise's "then" I can hear that bluetooth microphone physically activates (it loops back to the headphones). No amount of waiting with setTimeout inside getUserMedia's "then" can make it recordable - it's like the getUserMedia simply returns a broken stream. 3. If I quickly reload the page while the microphone is physically activated - I can record via bluetooth microphone just fine. 4. If I close the tab, the microphone is deactivated after a few seconds. When I open the tab again while the microphone is deactivated - the bug is reproducible again. Expected results: It should have recorded. Works as expected on Chrome 70.
Component: Untriaged → WebRTC: Audio/Video
Product: Firefox → Core
Naktinis, thanks for reporting. Did this used to work better in an earlier version of Firefox, do you know? Are you on Mojave? Also, could you try with https://jsfiddle.net/jib1/3ykab1e2/show and try to mute and unmute the audio to see if that recovers it?
Flags: needinfo?(naktinis)
(In reply to naktinis from comment #0) > 3. If I quickly reload the page while the microphone is physically activated- I can record via bluetooth microphone just fine. > 4. If I close the tab, the microphone is deactivated after a few seconds. > When I open the tab again while the microphone is deactivated - the bug is > reproducible again. Alex, do you have a bluetooth headset to confirm with and triage this?
Flags: needinfo?(achronop)
This is probably something that jya and I have fixed some time ago. Reporter, can you try in Nightly or Beta ?
It looks like dup of Bug 1489052. I have tested that scenario and should work now. Please check on Nightly and if it still not working I'll try to repro.
Flags: needinfo?(achronop)
After Firefox update 63.0.1 (maybe even 63) I can no longer produce this. Also seems to work fine on nightly. I believe it is safe to close this. Thank you for looking into it.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Flags: needinfo?(naktinis)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.