Пример #1
0
        public static RTSPMethodsEnum GetMethod(string method)
        {
            RTSPMethodsEnum rtspMethod = RTSPMethodsEnum.UNKNOWN;

            try
            {
                rtspMethod = (RTSPMethodsEnum)Enum.Parse(typeof(RTSPMethodsEnum), method, true);
            }
            catch { }

            return(rtspMethod);
        }
Пример #2
0
        public RTSPRequest(RTSPMethodsEnum method, string url)
        {
            RTSPHeaderParserError urlParserError = RTSPHeaderParserError.None;

            try
            {
                Method = method;

                URL = RTSPURL.ParseRTSPURL(url, out urlParserError);
                if (urlParserError != RTSPHeaderParserError.None)
                {
                    throw new ApplicationException("Error parsing RTSP URL, " + urlParserError.ToString() + ".");
                }

                RTSPVersion = m_rtspFullVersion;
            }
            catch (Exception excp)
            {
                Logger.Logger.Error("Exception RTSPRequest Ctor. ->" + excp.Message + ".");
            }
        }
Пример #3
0
		public RTSPRequest(RTSPMethodsEnum method, string url)
		{
			RTSPHeaderParserError urlParserError = RTSPHeaderParserError.None;
			
			try
			{
				Method = method;
				
				URL = RTSPURL.ParseRTSPURI(url, out urlParserError);
                if (urlParserError != RTSPHeaderParserError.None)
                {
                    throw new ApplicationException("Error parsing RTSP URL, " + urlParserError.ToString() + ".");
                }

				RTSPVersion = m_rtspFullVersion;
			}
			catch(Exception excp)
			{
				logger.Error("Exception RTSPRequest Ctor. " + excp.Message + ".");
			}
		}
Пример #4
0
 public RTSPRequest(RTSPMethodsEnum method, RTSPURL url)
 {
     Method = method;
      URL = url;
      RTSPVersion = m_rtspFullVersion;
 }
Пример #5
0
 public RTSPRequest(RTSPMethodsEnum method, RTSPURL url)
 {
     Method      = method;
     URL         = url;
     RTSPVersion = m_rtspFullVersion;
 }