媒体元素倒带 [英] Media element Rewind

查看:89
本文介绍了媒体元素倒带的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我使用MediaElement控件播放视频文件,并且需要具有快进和快退选项.对于快进,我增加了SpeedRatio,但是如何实现快退?我想反向播放视频(以适当的速度比).

解决方案

您可以将MediaElement.ScrubbingEnabled属性设置为true,暂停MediaElement,然后定期向后更改其MediaElement.Position属性以模仿倒带行为. /p>

In my application, I play a video file using the MediaElement control, and I need to have fast forward and rewind options. For fast forward, I increased the SpeedRatio, but how can I implement fast rewind? I want to play the video in reverse (in appropriate speed ratio).

解决方案

You could set the MediaElement.ScrubbingEnabled property to true, and pause the MediaElement, and then periodically change its MediaElement.Position property backwards to mimic the rewinding behaviour.

这篇关于媒体元素倒带的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆