wpf - What is simplest way to repeat a video in a MediaElement -


I have media analytics where the source is linked to some data

    

What is the easiest way to repeat the video? Ideally, media will be the property of repetitive behavior in the element.

  & lt; Repeat Media Element Deliver = 'Always' ... />  

But I can not find such a property.

You must add the storyboard to the media element, see the examples given below:

 < Code> & lt; Media Element Name = "myMediaElement" & gt; & Lt; MediaElement.Triggers & gt; & Lt; EventTrigger Routing Avent = "MediaAlment.loaded" & gt; & Lt; EventTrigger.Actions & gt; & Lt; BeginStoryboard & gt; & Lt; Storyboard & gt; & Lt ;! - MediaTimeline has a repetitive = "always" which runs the media more indefinitely - & gt; & Lt; MediaTimeline Source = "Media \ tada.wav" Storyboard Goal name = "My mediaIlment" repeatEdit = "always" /> & Lt; / Storyboard & gt; & Lt; / BeginStoryboard & gt; & Lt; /EventTrigger.Actions> & Lt; / EventTrigger & gt; & Lt; /MediaElement.Triggers> & Lt; / MediaElement & gt;  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -