Ejemplo n.º 1
0
        internal RtspRequest(string[] lineParts) : base(RtspVersion.Parse(lineParts[2]))
        {
            RtspMethod method;

            if (!Enum.TryParse <RtspMethod>(lineParts[0].Trim(), true, out method))
            {
                method = RtspMethod.UNKNOWN;
            }
            Method = method;

            URI = new Uri(lineParts[1]);
        }
Ejemplo n.º 2
0
 internal RtspResponse(string[] lineParts) : base(RtspVersion.Parse(lineParts[0]))
 {
     ResponseStatus = Status.ValueOf(int.Parse(lineParts[1].Trim()));
 }