Пример #1
0
 private void LeaveChannel()
 {
     _agoraKit.LeaveChannel(null);
     AgoraRtcEngineKit.Destroy();
     RtmService.Instance.LeaveChannel();
     _userList.Clear();
 }
 public void LeaveChannel()
 {
     _agoraKit.LeaveChannel(null);
     _agoraKit.SetupLocalVideo(null);
     AgoraRtcEngineKit.Destroy();
     RtmService.Instance.LeaveChannel();
     _users.Clear();
     _agoraKit = null;
 }
 /// <summary>
 /// Ends the session.
 /// </summary>
 public virtual void EndSession()
 {
     _containers.Clear();
     _knownStreams.Clear();
     _myId = 0;
     _agoraEngine.StopPreview();
     _agoraEngine.SetupLocalVideo(null);
     _agoraEngine.StopAudioMixing();
     _agoraEngine.StopAudioRecording();
     _agoraEngine.LeaveChannel(null);
     _agoraEngine.Dispose();
     AgoraRtcEngineKit.Destroy();
     _agoraEngine = null;
 }