Indicate when participant in conference has muted it's microphone
This commit is contained in:
parent
df8721c5fd
commit
ef4c7169e6
1 changed files with 6 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue