Esempio n. 1
0
 public PlayerFrm(CPlayer.FFmpeg ffmpeg)
 {
     //this.KeyPreview = true;
     this.FFmpeg          = ffmpeg;
     this.stoped          = false;
     this.volume0         = false;
     this.seeking         = false;
     this.volume          = 128;
     this.timer           = new Timer();
     this.FormBorderStyle = FormBorderStyle.None;
     this.MinimumSize     = new Size(313, 76);
     InitializeComponent();
     this.duration              = ffmpeg.Duration;
     this.TotalTime.Text        = this.FormatTime(duration, true);
     this.SeekTrackBar.MaxValue = (int)(duration / 1000000);
 }
Esempio n. 2
0
 public VideoForm(CPlayer.FFmpeg ffmpeg) : base(ffmpeg)
 {
     this.vp = new CPlayer.VideoPlayer(ffmpeg);
 }
Esempio n. 3
0
 public AudioForm(CPlayer.FFmpeg ffmpeg) : base(ffmpeg)
 {
     this.ap     = new CPlayer.AudioPlayer(ffmpeg);
     this.Height = 301;
 }