Inheritance: CSharpRTMP.Core.Protocols.Timer.BaseTimerProtocol
Example #1
0
        public bool EnableKeepAlive(uint period, string keepAliveURI)
        {
            var timer = new RtspKeepAliveTimer(Id);

            _keepAliveTimerId = timer.Id;
            _keepAliveURI     = keepAliveURI.Trim();
            if (_keepAliveURI == string.Empty)
            {
                _keepAliveURI = "*";
            }
            return(timer.EnqueueForTimeEvent(period));
        }
Example #2
0
 public bool EnableKeepAlive(uint period, string keepAliveURI)
 {
     var timer = new RtspKeepAliveTimer(Id);
     _keepAliveTimerId = timer.Id;
     _keepAliveURI = keepAliveURI.Trim();
     if (_keepAliveURI == string.Empty) _keepAliveURI = "*";
     return timer.EnqueueForTimeEvent(period);
 }