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.
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?
//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.
<rdar://problem/106948546>