Exemplo n.º 1
0
 public VideoDecoder(OGGStream stream, MediaKitProcessor.OGVControl control)
 {
     this.control_   = control;
     this.oggStream_ = stream;
     this.oggStream_.RefCount++;
     this.control_.Initializing = true;
 }
    public void Remove(MediaKitProcessor.OGVControl ctrl)
    {
        List <MediaKitProcessor.OGVControl> obj = this.controls_;

        lock (obj)
        {
            this.controls_.Remove(ctrl);
            this.RemoveOldVideo();
        }
    }
    public void Add(MediaKitProcessor.OGVControl ctrl)
    {
        List <MediaKitProcessor.OGVControl> obj = this.controls_;

        lock (obj)
        {
            this.controls_.Add(ctrl);
            this.AddNewVideo();
        }
    }
Exemplo n.º 4
0
 private void RefreshVideoControl()
 {
     if (string.IsNullOrEmpty(this.Video))
     {
         this.video_ = string.Empty;
         if (this.control_ != null)
         {
             this.Processor.Remove(this.control_);
         }
         this.control_ = null;
     }
     else if (!this.video_.Equals(this.Video))
     {
         if (this.control_ != null)
         {
             this.Processor.Remove(this.control_);
         }
         this.video_         = this.Video;
         this.control_       = new MediaKitProcessor.OGVControl(this.Video, this.Preload, this.VideoOutput);
         this.control_.Scale = this.Scale;
         this.Processor.Add(this.control_);
     }
 }
Exemplo n.º 5
0
 public AudioDecoder(OGGStream stream, MediaKitProcessor.OGVControl control)
 {
     this.control_   = control;
     this.oggStream_ = stream;
     this.oggStream_.RefCount++;
 }