The EnxRoom.setAudioOnlyMode() method allows you to switch to an audio-only call where you can neither receive anybody’s video nor publish your video. You can use this method as a toggle to switch between audio-only and audio-video call. This doesn’t affect other’s video Streams or ability to publish/receive Screen-Share in the Room.

MethodEnxRoom.setAudioOnlyMode( boolean AudioOnly)

Parameter:

AudioOnlyBoolean. Set to true to switch to audio-only call and false to switch to audio-video call.

room.setAudioOnlyMode(true);   // Switched to Audio-Only call
room.setAudioOnlyMode(false);  // Switched back to Audio-Video call