コード例 #1
0
 public void Hangup()
 {
     _call.RemoteParticipantsUpdated -= _call_RemoteParticipantsUpdated;
     Com.Laerdal.Azurecommunicationhelper.CallClientHelper.HangUp(_call, new HangUpOptions());
     _localRenderer?.Dispose();
     _localRenderer = null;
     _localVideoStream?.Dispose();
     _localVideoStream = null;
     _remoteVideoStreams.Clear();
     _call.Dispose();
     _call = null;
 }
コード例 #2
0
        public void Hangup()
        {
            _call.RemoteParticipantsUpdated -= _call_RemoteParticipantsUpdated;
            var hangupOptions = new HangupOptions();

            _call.Hangup(hangupOptions).Get();
            _localRenderer?.Dispose();
            _localRenderer = null;
            _localVideoStream?.Dispose();
            _localVideoStream = null;
            _remoteVideoStreams.Clear();
            _call.Dispose();
            _call = null;
        }