I\'m playing a video in WPF.i want it to loop so what I did is when the mediaended event fires, I play back my video. so this will get me a loop. prob is why do u I have to
I think you should use this code :
private void Media_Ended(object sender, EventArgs e) { media.Position = TimeSpan.Zero; media.LoadedBehavior = MediaState.Play; }
I hope this will help.