示例#1
0
文件: Video.cs 项目: w0pr/blizztv
 void PlayerClosed(object sender, FormClosedEventArgs e)
 {
     this._player = null;
 }
示例#2
0
文件: Video.cs 项目: w0pr/blizztv
 private void Play()
 {
     if (GlobalSettings.Instance.UseInternalViewers)
     {
         if (this._player == null)
         {
             this._player = new PlayerForm(this); // render the video with our own video player
             this._player.FormClosed += PlayerClosed;
             this._player.Show();
         }
         else this._player.Focus();
     }
     else System.Diagnostics.Process.Start(this.Link, null); // render the video with default web-browser.
     if (this.State != State.Read) this.State = State.Read;
 }