Пример #1
0
        void TimerTicked(object sender, EventArgs e)
        {
            trackBar.Value     = (int)video.CurrentPosition;
            timeCodeLabel.Text = TimeSpan.FromSeconds(video.CurrentPosition).ToString(@"hh\:mm\:ss") + " / " + TimeSpan.FromSeconds(video.Duration).ToString(@"hh\:mm\:ss");

            if (cut.Checked && (int)video.CurrentPosition == checkpoint)
            {
                NextSegmentRequested?.Invoke(this, null);
            }
        }
Пример #2
0
        public void Play()
        {
            if (video == null)
            {
                return;
            }

            if (checkpoint == -100 && cut.Checked)
            {
                NextSegmentRequested?.Invoke(this, null);
                return;
            }

            video.Play();
            timer.Start();
            TimerTicked(this, null);

            playBtn.Text = "\x23F8";
        }
Пример #3
0
 void NextClicked(object sender, EventArgs e) =>
 NextSegmentRequested?.Invoke(this, null);