If you want change to a audio-only call, i.e. you neither want to receive anyone’s video nor want to publish your video; you may use Enx.changeToAudioOnly()
method. This method acts as a toggle to switch between audio-only and audio-video call.
This opt-in is only for the specific End-Point and doesn’t affect others in the room.
Method: Enx.changeToAudioOnly( audioOnlyState )
Parameter: audioOnlyState
– Boolean. Pass true to switch to Audio Only call, pass false to switch back to audio-video call.
Enx.changeToAudioOnly(true); // Switched to Audio-Only call Enx.changeToAudioOnly(false); // Switched back to Audio-Video call