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