on Participant Mode Changed
Called when a participant's mode changes.
The data object contains:
"peerId"— the ID of the participant whose mode changed"mode"— the new mode (one of MeetingMode values:"SEND_AND_RECV","RECV_ONLY","SIGNALLING_ONLY")
Code Example:
override fun onParticipantModeChanged(data: JSONObject) {
val peerId = data.optString("peerId")
val mode = data.optString("mode")
Log.d("Meeting", "Participant $peerId mode changed to $mode")
}
Content copied to clipboard
Parameters
data
a JSONObject with participant mode change information
See also
Meeting.changeMode()
Participant.getMode()