コード例 #1
0
 // Play the media.
 void OnMouseDownPlayMedia(object sender, MouseButtonEventArgs args)
 {
     // The Play method will begin the media if it is not currently active or
     // resume media if it is paused. This has no effect if the media is
     // already running.
     LocalVideoElement.Play();
 }
コード例 #2
0
 // When the media playback is finished. Stop() the media to seek to media start.
 private void Element_MediaEnded(object sender, EventArgs e)
 {
     LocalVideoElement.Stop();
 }
コード例 #3
0
 // Pause the media.
 void OnMouseDownPauseMedia(object sender, MouseButtonEventArgs args)
 {
     // The Pause method pauses the media if it is currently running.
     // The Play method can be used to resume.
     LocalVideoElement.Pause();
 }