exitRTCRoom method

dynamic exitRTCRoom()

Implementation

exitRTCRoom() async {
  _trtcStreamInfoObs.clearTRTCStreamInfo();
  await TRTC.enableAudioVolumeEvaluation(false);
  await TRTC.removeListener();
  if (TcicScreen.isDeskTop()) {
    await TRTC.removeDeviceChangeCallback();
  }
  await TRTC.stopLocalAudio("exitRTCRoom");
  await TRTC.exitRoom();
}