bas
bas

Reputation: 14932

UWP MediaPlayerElement - how to loop/repeat mp4

I have an mp4 that I need to repeat in a page.

How can this be achieved?

<MediaPlayerElement
    Grid.Row="0"
    Background="White"
    Source="{x:Bind MovieSource}"
    Width="900" 
    AutoPlay="True" >

</MediaPlayerElement>

I tried to use a storyboard but found out that MediaTimeline is not available in UWP.

Can't find a working alternative...

Upvotes: 1

Views: 852

Answers (1)

kennyzx
kennyzx

Reputation: 12993

The MediaPlayer property of the MediaPlayerElement class has an IsLoopingEnabled property.

Upvotes: 4

Related Questions