diff --git a/app/src/main/java/org/linphone/activities/voip/data/ConferenceParticipantDeviceData.kt b/app/src/main/java/org/linphone/activities/voip/data/ConferenceParticipantDeviceData.kt index 1476ea4a4..2c61e87fd 100644 --- a/app/src/main/java/org/linphone/activities/voip/data/ConferenceParticipantDeviceData.kt +++ b/app/src/main/java/org/linphone/activities/voip/data/ConferenceParticipantDeviceData.kt @@ -59,6 +59,11 @@ class ConferenceParticipantDeviceData( activeSpeaker.value = isSpeaking } + override fun onIsMuted(participantDevice: ParticipantDevice, isMuted: Boolean) { + Log.i("[Conference Participant Device] Participant [${participantDevice.address.asStringUriOnly()}] is ${if (isMuted) "muted" else "not muted"}") + micMuted.value = isMuted + } + override fun onConferenceJoined(participantDevice: ParticipantDevice) { Log.i("[Conference Participant Device] Participant [${participantDevice.address.asStringUriOnly()}] has joined the conference") isInConference.value = true @@ -101,10 +106,10 @@ class ConferenceParticipantDeviceData( participantDevice.addListener(listener) activeSpeaker.value = false + micMuted.value = participantDevice.isMuted videoAvailable.value = participantDevice.getStreamAvailability(StreamType.Video) val videoCapability = participantDevice.getStreamCapability(StreamType.Video) videoSendReceive.value = videoCapability == MediaDirection.SendRecv - micMuted.value = false // TODO isInConference.value = participantDevice.isInConference videoEnabled.value = isVideoAvailableAndSendReceive()