Bug 253834 - A mediastreamtrack ended due to a capture failure
Summary: A mediastreamtrack ended due to a capture failure
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: Safari 16
Hardware: Mac (Apple Silicon) macOS 13
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-03-13 09:44 PDT by Ara
Modified: 2023-03-20 09:45 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ara 2023-03-13 09:44:18 PDT
The error appears every time the user switches from the MacBook microphone to the iPod or iPhone microphone. Sometimes it happens that the Bluetooth headphones are not connected, but the error is also displayed in the console. Everything works fine in Google Chrome or firefox, the error is only in safari. It also happens that the camera and the screen sharing is not displayed at the first start, and the console gives the above error. We have observed this error on recent Mac computers with m1 and m2 processors with the latest version of mac os and safari. MediaStreamTrack.onended is also triggering.
Comment 1 youenn fablet 2023-03-13 11:33:45 PDT
I am not sure about camera and screen sharing.
With regards to microphone, Safari only supports one microphone for now, so capturing in one mic will kill the previous capture if it is not the same microphone.
Is the request to support multiple microphones at the same time?
Comment 2 Ara 2023-03-13 12:05:30 PDT
//Is the request to support multiple microphones at the same time? - No

The user broadcasts on a macbook microphone, selects airpods or an iPhone microphone from the list. We do these steps, the stream closes and track stops, MediaStreamTrack.stop() and a new one is taken via getUserMedia({deviceID: {exact: airpodsDeviceId}}) and as soon as the stream opens to the server, an error showing in the console.
Comment 3 Radar WebKit Bug Importer 2023-03-20 09:45:20 PDT
<rdar://problem/106948546>