Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(rn,conference) fix unmute when "everyone starts muted" is set

Saúl Ibarra Corretgé51626506ff17
diff --git a/react/features/base/conference/actions.js b/react/features/base/conference/actions.js
index 567359fc79..df31a7ce52 100644
--- a/react/features/base/conference/actions.js
+++ b/react/features/base/conference/actions.js
@@ -135,8 +135,11 @@ function _addConferenceListeners(conference, dispatch, state) {
// Remove the tracks from peerconnection as well.
for (const track of localTracks) {
- if ((audioMuted && track.jitsiTrack.getType() === MEDIA_TYPE.AUDIO)
- || (videoMuted && track.jitsiTrack.getType() === MEDIA_TYPE.VIDEO)) {
+ const trackType = track.jitsiTrack.getType();
+
+ // Do not remove the audio track on RN. Starting with iOS 15 it will fail to unmute otherwise.
+ if ((audioMuted && trackType === MEDIA_TYPE.AUDIO && navigator.product !== 'ReactNative')
+ || (videoMuted && trackType === MEDIA_TYPE.VIDEO)) {
dispatch(replaceLocalTrack(track.jitsiTrack, null, conference));
}
}