public static RTSPMethodsEnum GetMethod(string method) { RTSPMethodsEnum rtspMethod = RTSPMethodsEnum.UNKNOWN; try { rtspMethod = (RTSPMethodsEnum)Enum.Parse(typeof(RTSPMethodsEnum), method, true); } catch { } return(rtspMethod); }
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 + "."); } }
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 + "."); } }
public RTSPRequest(RTSPMethodsEnum method, RTSPURL url) { Method = method; URL = url; RTSPVersion = m_rtspFullVersion; }