If you want to change to an audio-only call, i.e. you neither want to receive anyone’s video nor want to publish your video; you may use window.EnxRtc.setAudioOnlyMode() method. This method acts as a toggle to switch between audio-only and audio-video calls.

This opt-in is only for the specific End-Point and doesn’t affect others in the room.

Method: setAudioOnlyMode( audioOnly, successCallback, errorCallback )


  • @param {boolean} audioOnly true: audio-only call, false: audio-video call
  • @param {CallableFunction} successCallback
  • @param {CallableFunction} errorCallback
window.EnxRtc.setAudioOnlyMode(audioOnly ,function (data) {
console.log('Excelsior success! ' + JSON.stringify(data.data));
}, function (err) {
console.log('Uh oh… error' + JSON.stringify(err));