コード例 #1
0
ファイル: PlayerService.cs プロジェクト: anomous/JuvoPlayer
 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());
 }
コード例 #2
0
ファイル: PlayerService.cs プロジェクト: anomous/JuvoPlayer
        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();
            }
        }
コード例 #3
0
ファイル: PlayerService.cs プロジェクト: anomous/JuvoPlayer
 public void DeactivateStream(StreamDefinition.StreamType streamType)
 {
     base.DeactivateStream(ToJuvoStreamType(streamType));
 }