disconnectRoom method

Future<void> disconnectRoom()

Implementation

Future<void> disconnectRoom() async {
  if (EnxSetting.instance.isLiveStreamingRunning) {
   await EnxRtc.stopStreaming(EnxSetting.instance.liveStreamInfo);
  }
  await EnxRtc.disconnect();
}