c# - UWP MediaPlayerElement - 如何循环/重复 mp4

标签 c# uwp mp4

我有一个 mp4 需要在页面中重复播放。

如何实现?

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

</MediaPlayerElement>

我尝试使用 Storyboard,但发现 MediaTimeline 在 UWP 中不可用。

找不到可行的替代方案...

最佳答案

MediaPlayer MediaPlayerElement 类的属性有一个 IsLoopingEnabled属性(property)。

关于c# - UWP MediaPlayerElement - 如何循环/重复 mp4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52128282/

相关文章:

c# - 如何设置 CultureInfo.CurrentCulture?

c# - UWP 应用中的 WCF 发现

youtube - 为什么手机(不限于iPhone)上的YouTube音频出现乱码?

java - 使用java从mp4中提取图像

html - 如何使用视频标签在 html 网页中嵌入 .h264 视频文件

c# - 为什么在 C# 中使用 String.Concat()?

c# - 你如何在 C# 中每分钟更新一个 datagridview

c# - LINQ to SQL调用存储过程

c# - x :Bind ViewModel method to an Event inside DataTemplate

c# - UWP 应用程序中的 Xamarin Forms WebView 控件无法加载 url,但 Edge 浏览器和 Android 应用程序可以