public Video(MainWindow parent) { this.parent = parent; InitializeComponent(); timer.Interval = TimeSpan.FromSeconds(0.1); timer.Tick += timer_tick; SomeMedia.Play(); SomeMedia.Pause(); }
private void Button_Click(object sender, RoutedEventArgs e) { if (StartNPause) { SomeMedia.Play(); StartNPause = false; timer.Start(); } else { SomeMedia.Pause(); StartNPause = true; timer.Stop(); } }
private void SliderBack_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e) { SomeMedia.Pause(); SomeMedia.Position = TimeSpan.FromSeconds(sliderBack.Value); SomeMedia.Play(); }