Esempio n. 1
0
        public EsStream(Common.StreamType type, EsPlayerPacketStorage storage)
        {
            streamType    = type;
            packetStorage = storage;

            switch (streamType)
            {
            case StreamType.Audio:
                PushStreamConfig = PushAudioConfig;
                break;

            case StreamType.Video:
                PushStreamConfig = PushVideoConfig;
                break;

            default:
                throw new ArgumentException($"Stream Type {streamType} is unsupported");
            }

            wakeup = new ManualResetEventSlim(false);
        }
Esempio n. 2
0
        public EsStream(Common.StreamType type, EsPlayerPacketStorage storage, StreamBufferController bufferController)
        {
            streamType             = type;
            packetStorage          = storage;
            streamBufferController = bufferController;

            switch (streamType)
            {
            case StreamType.Audio:
                PushStreamConfig = PushAudioConfig;
                break;

            case StreamType.Video:
                PushStreamConfig = PushVideoConfig;
                break;

            default:
                throw new ArgumentException($"Stream Type {streamType} is unsupported");
            }

            wakeup  = new ManualResetEventSlim(false);
            barrier = new PacketBarrier(TransferChunk);
        }
Esempio n. 3
0
 internal static ESPlayer.StreamType ESStreamType(this Common.StreamType juvoStreamType)
 {
     return juvoStreamType == Common.StreamType.Video ?
         ESPlayer.StreamType.Video : ESPlayer.StreamType.Audio;
 }