Inheritance: CSharpRTMP.Core.Protocols.Timer.BaseTimerProtocol
コード例 #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));
        }
コード例 #2
0
ファイル: RtspProtocol.cs プロジェクト: langhuihui/csharprtmp
 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);
 }