[Webkit-unassigned] [Bug 237203] New: Bluetooth headphone stream can't be recaptured after AudioContext

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 25 05:19:23 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=237203

            Bug ID: 237203
           Summary: Bluetooth headphone stream can't be recaptured after
                    AudioContext
           Product: WebKit
           Version: Safari 15
          Hardware: Mac (Intel)
                OS: macOS 11
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebRTC
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: michaelgeorge.thomas at vonage.com
                CC: youennf at gmail.com

It appears that AudioContext is not releasing Bluetooth headphones when a stream is destroyed.
The console logs an error when trying to re-use the headphones to get an audio stream: A MediaStreamTrack ended due to a capture failure

I have detailed steps to reproduce in a modified webrtc sample here.
https://github.com/webrtc/samples/pull/1526
It basically creates an AudioContext for a stream from headphones, then changes the audio input device to internal mic and then back to headphones, at which point the capture fails.


This bug suggests it can be solved by closing the AudioContext: 
https://bugs.webkit.org/show_bug.cgi?id=23635
However, the AudioContext doc recommends using a single AudioContext instance for multiple nodes, and therefore closing a whole context to release the hardware from one node is not a viable solution: https://developer.mozilla.org/en-US/docs/Web/API/AudioContext

Note that this issue is not present in other browsers, nor in safari with non-bluetooth devices.

A colleague was unable to reproduce with AirPods but we were able to reproduce using Sony WH-1000XM3 and Bose NC700 headphones.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220225/642d2dfa/attachment-0001.htm>


More information about the webkit-unassigned mailing list