[iOS] Only update the matching local track data in CallKit
This commit is contained in:
parent
42b85f73bd
commit
ec8ad6190d
|
@ -385,13 +385,22 @@ function _syncTrackState({ getState }, next, action) {
|
||||||
const conference = getCurrentConference(state);
|
const conference = getCurrentConference(state);
|
||||||
|
|
||||||
if (jitsiTrack.isLocal() && conference && conference.callUUID) {
|
if (jitsiTrack.isLocal() && conference && conference.callUUID) {
|
||||||
|
switch (jitsiTrack.getType()) {
|
||||||
|
case 'audio': {
|
||||||
const tracks = state['features/base/tracks'];
|
const tracks = state['features/base/tracks'];
|
||||||
const muted = isLocalTrackMuted(tracks, MEDIA_TYPE.AUDIO);
|
const muted = isLocalTrackMuted(tracks, MEDIA_TYPE.AUDIO);
|
||||||
|
|
||||||
CallKit.setMuted(conference.callUUID, muted);
|
CallKit.setMuted(conference.callUUID, muted);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 'video': {
|
||||||
CallKit.updateCall(
|
CallKit.updateCall(
|
||||||
conference.callUUID,
|
conference.callUUID,
|
||||||
{ hasVideo: !isVideoMutedByAudioOnly(state) });
|
{ hasVideo: !isVideoMutedByAudioOnly(state) });
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in New Issue