public List <StreamDefinition> GetStreamsDescription(StreamDefinition.StreamType streamType) { return(base.GetStreamsDescription(ToJuvoStreamType(streamType)) .Select(o => new StreamDefinition { Id = o.Id, Description = o.Description, Default = o.Default, Type = ToStreamType(o.StreamType) }).ToList()); }
private StreamType ToJuvoStreamType(StreamDefinition.StreamType streamType) { switch (streamType) { case StreamDefinition.StreamType.Audio: return(StreamType.Audio); case StreamDefinition.StreamType.Video: return(StreamType.Video); case StreamDefinition.StreamType.Subtitle: return(StreamType.Subtitle); default: throw new IndexOutOfRangeException(); } }
public void DeactivateStream(StreamDefinition.StreamType streamType) { base.DeactivateStream(ToJuvoStreamType(streamType)); }