LOOPING VIDEO

I can't seem to figure out how to get a video to loop continuously. The RepeatBehavior property just locks up my page. Anyone know how to fix this?.. Thanks
[157 byte] By [Metropolis12] at [2007-12-31]
# 1

RepeatBehavior is not supported on MediaElement.To loop, you can do the following:

<MediaElement Source="myvideo.wmv" MediaEnded="javascript:onMediaEnded"/>

With the following code:

function onMediaEnded(sender, args) {

sender.position = 0;

sender.play();

}

Joe

JoeStegman at 2007-9-6 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) Developer Issues...
# 2
thanks Joe that was what I needed
Metropolis12 at 2007-9-6 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) Developer Issues...