正在显示
2 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -147,7 +147,7 @@ class CallViewModel( | @@ -147,7 +147,7 @@ class CallViewModel( | ||
| 147 | fun setCameraEnabled(enabled: Boolean) { | 147 | fun setCameraEnabled(enabled: Boolean) { |
| 148 | viewModelScope.launch { | 148 | viewModelScope.launch { |
| 149 | val localParticipant = room.value?.localParticipant ?: return@launch | 149 | val localParticipant = room.value?.localParticipant ?: return@launch |
| 150 | - localParticipant.setMicrophoneEnabled(enabled) | 150 | + localParticipant.setCameraEnabled(enabled) |
| 151 | mutableCameraEnabled.postValue(enabled) | 151 | mutableCameraEnabled.postValue(enabled) |
| 152 | } | 152 | } |
| 153 | } | 153 | } |
| @@ -51,7 +51,7 @@ fun ParticipantItem( | @@ -51,7 +51,7 @@ fun ParticipantItem( | ||
| 51 | ?: videoTracks.values.firstOrNull()?.track as? VideoTrack | 51 | ?: videoTracks.values.firstOrNull()?.track as? VideoTrack |
| 52 | 52 | ||
| 53 | 53 | ||
| 54 | - if (videoTrack != null) { | 54 | + if (videoTrack != null && videoTrack.enabled) { |
| 55 | VideoItemTrackSelector( | 55 | VideoItemTrackSelector( |
| 56 | room = room, | 56 | room = room, |
| 57 | participant = participant, | 57 | participant = participant, |
-
请 注册 或 登录 后发表评论