ソースを参照

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

Since iOS 15 we really need the audio stream to exist, so make sure we don't
destroy it even when "everyone starts muted" is set, we'll just mute it.

Fixes: https://github.com/jitsi/jitsi-meet/issues/10053
master
Saúl Ibarra Corretgé 4年前
コミット
51626506ff
1個のファイルの変更5行の追加2行の削除
  1. 5
    2
      react/features/base/conference/actions.js

+ 5
- 2
react/features/base/conference/actions.js ファイルの表示

135
 
135
 
136
             // Remove the tracks from peerconnection as well.
136
             // Remove the tracks from peerconnection as well.
137
             for (const track of localTracks) {
137
             for (const track of localTracks) {
138
-                if ((audioMuted && track.jitsiTrack.getType() === MEDIA_TYPE.AUDIO)
139
-                    || (videoMuted && track.jitsiTrack.getType() === MEDIA_TYPE.VIDEO)) {
138
+                const trackType = track.jitsiTrack.getType();
139
+
140
+                // Do not remove the audio track on RN. Starting with iOS 15 it will fail to unmute otherwise.
141
+                if ((audioMuted && trackType === MEDIA_TYPE.AUDIO && navigator.product !== 'ReactNative')
142
+                        || (videoMuted && trackType === MEDIA_TYPE.VIDEO)) {
140
                     dispatch(replaceLocalTrack(track.jitsiTrack, null, conference));
143
                     dispatch(replaceLocalTrack(track.jitsiTrack, null, conference));
141
                 }
144
                 }
142
             }
145
             }

読み込み中…
キャンセル
保存