UWP MediaPlayerElement - how to loop/repeat mp4

爷,独闯天下 提交于 2019-12-11 11:52:46

问题


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...


回答1:


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



来源:https://stackoverflow.com/questions/52128282/uwp-mediaplayerelement-how-to-loop-repeat-mp4

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!