Beispiel #1
0
 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());
 }
Beispiel #2
0
        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();
            }
        }
Beispiel #3
0
 public void DeactivateStream(StreamDefinition.StreamType streamType)
 {
     base.DeactivateStream(ToJuvoStreamType(streamType));
 }