Beispiel #1
0
        public static PayloadHandler Create(string RfcHandlerName)
        {
            PayloadHandler handler = null;
            switch (RfcHandlerName)
            {
                case "JPEG":
                    handler = new RFC2435PayloadHandler();
                    break;

                case "MP4V-ES":
                    handler = new RFC3016PayloadHandler();
                    break;

                case "H264":
                    handler = new RFC3984PayloadHandler();
                    break;

                case "PCMU":
                    handler = new RFC5391PayloadHandler();
                    break;

                default:
                    //...
                    break;

            }
            return handler;
        }
Beispiel #2
0
        public static PayloadHandler Create(string RfcHandlerName)
        {
            PayloadHandler handler = null;

            switch (RfcHandlerName)
            {
            case "JPEG":
                handler = new RFC2435PayloadHandler();
                break;

            case "MP4V-ES":
                handler = new RFC3016PayloadHandler();
                break;

            case "H264":
                handler = new RFC3984PayloadHandler();
                break;

            case "PCMU":
                handler = new RFC5391PayloadHandler();
                break;

            default:
                //...
                break;
            }
            return(handler);
        }