// 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(); }
// When the media playback is finished. Stop() the media to seek to media start. private void Element_MediaEnded(object sender, EventArgs e) { LocalVideoElement.Stop(); }
// 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(); }