Example #1
0
 public void Stop()
 {
     Pause();
     info.ForceChange((long)(Time * 1000));
     VideoInfoChange?.Invoke(info, (long)(Time * 1000));
     Time = 0;
     StopWatcher();
 }
Example #2
0
        public void Play(VideoInfo video)
        {
            form = new PlayerForm(this);
            form.FilePosition += (v, position) =>
            {
                VideoInfoChange?.Invoke(v, position);
            };
            form.Show();

            form.Play(video);
        }
Example #3
0
 public void Quit()
 {
     StopWatcher();
     info.ForceChange((long)(Time * 1000));
     VideoInfoChange?.Invoke(info, (long)(Time * 1000));
     if (_mpvHandle != IntPtr.Zero)
     {
         _mpvTerminateDestroy(_mpvHandle);
         _mpvHandle = IntPtr.Zero;
     }
     form = null;
 }
Example #4
0
 public void Stop()
 {
     Pause();
     info.ForceChange((long)(Time * 1000));
     VideoInfoChange?.Invoke(info, (long)(Time * 1000));
     Time = 0;
     StopWatcher();
     if (info != null)
     {
         BaseVideoPlayer.PlaybackStopped(info, (long)Time);
     }
 }
Example #5
0
 protected void OnPositionChangeEvent(VideoInfo info, long position)
 {
     VideoInfoChange?.Invoke(info, position);
 }