changeMode

fun changeMode(mode: String)

This method can be used to change the meeting mode of the local participant.

Events:

  • onParticipantModeChanged — emitted on all participants when the mode changes
  • onStreamEnabled/onStreamDisabled — emitted on the local participant if streams are added/removed due to the mode transition
  • onPresenterChanged — emitted with null if the participant had an active screen share that is closed

Code Example:


// Switch to send-and-receive mode
meeting.changeMode("SEND_AND_RECV")

Parameters

mode

the new meeting mode — "SEND_AND_RECV", "RECV_ONLY", or "SIGNALLING_ONLY". See MeetingMode for all available modes.