示例#1
0
 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 static RtspRealmInfoResult OnRtspRealm_Call(RtspRealmInfo rtspRealmInfo) => OnRtspRealm?.Invoke(rtspRealmInfo);