public void Stop() { Pause(); info.ForceChange((long)(Time * 1000)); VideoInfoChange?.Invoke(info, (long)(Time * 1000)); Time = 0; StopWatcher(); }
public void Play(VideoInfo video) { form = new PlayerForm(this); form.FilePosition += (v, position) => { VideoInfoChange?.Invoke(v, position); }; form.Show(); form.Play(video); }
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; }
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); } }
protected void OnPositionChangeEvent(VideoInfo info, long position) { VideoInfoChange?.Invoke(info, position); }