private string RtspGetRealm(MediaInfo mediaInfo, SockInfo sockInfo) { if (!this.IsCurrentMedia(mediaInfo) || this.OnRtspRealm == null) { return(null); } //没有密码验证就不要使用realm了 if (OnRtspAuth == null) { return(null); } return(OnRtspRealm.Invoke(this, sockInfo)); }
internal WatchClient(SockInfo sockInfo) { this.BeginTime = DateTime.Now; this.SockInfo = sockInfo; }