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