[Webkit-unassigned] [Bug 271313] New: disconnecting bluetooth device rendered in DOM breaks video track

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 20 06:36:58 PDT 2024


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

            Bug ID: 271313
           Summary: disconnecting bluetooth device rendered in DOM breaks
                    video track
           Product: WebKit
           Version: Safari 17
          Hardware: Mac (Apple Silicon)
                OS: macOS 14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebRTC
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: pontus.fagerstrom at whereby.com
                CC: youennf at gmail.com

When a bluetooth device, being rendered in DOM in an HTMLAudioElement, is removed it breaks video track, obtained from navigator.mediaDevices.getUserMedia().

Reproduce like this:
1. https://webrtc.github.io/samples/src/content/devices/input-output/
2. Use bluetooth microphone (I tested with AirPods A2031 and Sennheiser Momentum 3, version 96.8.3)
3. Make the device disconnect from the computer (I put the Airpods back in the case / turned off the Sennheiser Momentum 3 headphones)
4. See the video image freeze

When I reproduce locally in a small lab/experiment project the video tile turns black instead of freezing.
I've tested using RTCPeerConnections and on the remote end the incoming video bitrate drops and the video tile turns black.

If you do the same thing with an audio device connected via USB the video is not affected.

If you don't render the audio in DOM the video is not affected when the bluetooth device is disconnected.

I render it like this:
1. create a HTMLAudioElement
2. create a MediaStream
3. add the audio track to the MediaStream
4. do audioElement.srcObject = stream

-- 
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/20240320/1644e60d/attachment.htm>


More information about the webkit-unassigned mailing list