示例#1
0
 public void Stop()
 {
     if (_state != RtcEventLogState.Started)
     {
         _logger.Error(TAG, "RtcEventLog was not started.");
         return;
     }
     _peerConnection.StopRtcEventLog();
     _state = RtcEventLogState.Stopped;
     _logger.Debug(TAG, "RtcEventLog stopped.");
 }
示例#2
0
        public void Start()
        {
            if (_state == RtcEventLogState.Started)
            {
                _logger.Debug(TAG, "RtcEventLog has already started.");
                return;
            }

            var success = _peerConnection.StartRtcEventLog(_file, OutputFileMaxBytes);

            if (!success)
            {
                _logger.Error(TAG, "Failed to start RTC event log.");
                return;
            }

            _state = RtcEventLogState.Started;
            _logger.Debug(TAG, "RtcEventLog started.");
        }