コード例 #1
0
 public VideoDecoder(OGGStream stream, MediaKitProcessor.OGVControl control)
 {
     this.control_   = control;
     this.oggStream_ = stream;
     this.oggStream_.RefCount++;
     this.control_.Initializing = true;
 }
コード例 #2
0
    public void Remove(MediaKitProcessor.OGVControl ctrl)
    {
        List <MediaKitProcessor.OGVControl> obj = this.controls_;

        lock (obj)
        {
            this.controls_.Remove(ctrl);
            this.RemoveOldVideo();
        }
    }
コード例 #3
0
    public void Add(MediaKitProcessor.OGVControl ctrl)
    {
        List <MediaKitProcessor.OGVControl> obj = this.controls_;

        lock (obj)
        {
            this.controls_.Add(ctrl);
            this.AddNewVideo();
        }
    }
コード例 #4
0
ファイル: VideoPlayer.cs プロジェクト: whztt07/mobahero_src
 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_);
     }
 }
コード例 #5
0
 public AudioDecoder(OGGStream stream, MediaKitProcessor.OGVControl control)
 {
     this.control_   = control;
     this.oggStream_ = stream;
     this.oggStream_.RefCount++;
 }