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(); } }
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_); } }
public AudioDecoder(OGGStream stream, MediaKitProcessor.OGVControl control) { this.control_ = control; this.oggStream_ = stream; this.oggStream_.RefCount++; }