Exemple #1
0
 public ItemVideoStream(ItemContainer parent, string path, string title, EncoderBuilder settings)
     : base(string.Format("{0} {1} {2}kBps {3}", title, settings.Resolution, settings.VidBitrate, settings.Audio), parent)
 {
     this.path        = path;
     this.mime        = settings.GetMime();
     this.date        = DateTime.Now;
     this.bitrate     = settings.VidBitrate;
     this.resolution  = settings.Resolution;
     this.queryString = settings.GetParamString();
     this.dlnaType    = settings.GetDlnaType();
 }
Exemple #2
0
        public ItemStream(string title, ItemContainer parent, EncoderBuilder encBuilder)
            : base(GetTitle(title, encBuilder.Resolution, encBuilder.Video ? encBuilder.VidBitrate : encBuilder.AudBitrate, encBuilder.Audio), null, parent)
        {
            this.Mime          = encBuilder.GetMime();
            this.Date          = DateTime.Now;
            this.Resolution    = encBuilder.Resolution;
            this.SubtitlesPath = encBuilder.GetParamString();
            this.Audio         = encBuilder.Audio && !encBuilder.Video;
            this.Video         = encBuilder.Video;

            parent.SetMediaType(this.Audio ? MediaType.Audio : MediaType.Video);
        }