Пример #1
0
        public EsPlayer(Window window)
        {
            try
            {
                packetStorage = new EsPlayerPacketStorage();
                packetStorage.Initialize(StreamType.Audio);
                packetStorage.Initialize(StreamType.Video);

                streamControl = new EsStreamController(packetStorage, window);
                streamControl.Initialize(StreamType.Audio);
                streamControl.Initialize(StreamType.Video);
            }
            catch (InvalidOperationException ioe)
            {
                logger.Error(ioe, "EsPlayer failure");
                throw ioe;
            }
        }