destroyRoom method

Future<void> destroyRoom()

Implementation

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