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); }
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); }
internal static ESPlayer.StreamType ESStreamType(this Common.StreamType juvoStreamType) { return juvoStreamType == Common.StreamType.Video ? ESPlayer.StreamType.Video : ESPlayer.StreamType.Audio; }