All you really need to do is call play on the mediaended event (remember to hook in the event in the xaml)
code below:
protected void myMediaElement_MediaEnded(object sender, EventArgs args)
{
// Replay the video
MediaElement video = (MediaElement)sender;video.Position = new TimeSpan(0);
video.Play();
}
No comments:
Post a Comment