/ Published in: C#
There's no built-in "loop" property on the Silverlight mediaElement control. Add a listener to any mediaElement and this function will loop it.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//to add Event Handler where "ambient1" and "ambient2" are different media elements... //Event Handler void media_MediaEnded(object sender, RoutedEventArgs e) { MediaElement ctrl = (MediaElement)sender; ctrl.Stop(); ctrl.Play(); }
URL: http://www.john-lynch.org/