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

            form.Play(video);
        }
Пример #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;
 }
Пример #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);
     }
 }
Пример #5
0
 protected void OnPositionChangeEvent(VideoInfo info, long position)
 {
     VideoInfoChange?.Invoke(info, position);
 }