twilio / twilio-video.js

Twilio’s Programmable Video JavaScript SDK
https://www.twilio.com/docs/video/javascript
Other
571 stars 217 forks source link

Safari audio tracks not disabling correctly #2062

Open kg-jcaron opened 6 days ago

kg-jcaron commented 6 days ago

Joining a room with a disabled audio track on desktop safari 18.1, and ios safari 17.0, 18.0, and 18.1 treats the track as enabled and all audio is broadcast to the rest of the participants. The LocalAudioTrack.isEnabled property returns false, but the audio is broadcast. Enabling the track, and then re-disabling it fixes the issue. This doesn't seem to occur in iOS 16.0, or on desktop Chrome or Firefox.

I made a reproduction example using the video-quickstart-js repo (the localmediacontrols example http://localhost:3000/localmediacontrols/): https://github.com/kg-jcaron/video-quickstart-js

Software versions:

luisrivas commented 6 days ago

Hi, this is a known issue on WebKit (https://github.com/WebKit/WebKit/commit/c29f5f0e0f7e949d33dd3457e4e44609a7a7219b). However, we are working on a workaround to mitigate this for our SDK users. See https://github.com/twilio/twilio-video.js/pull/2061 for more details.

kg-jcaron commented 6 days ago

Thank you!