MediaElement播放状态 [英] MediaElement play state
本文介绍了MediaElement播放状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经在网上搜索过,无法找到一种方法来询问MediaElement的播放状态,或者在视频位置发生变化时让它生成事件.任何人都有可以工作的示例吗?
I have searched the web and cannot find a way that works to ask a MediaElement what it''s play state is, or have it generate an event when the position of the video changes. Anyone have any samples that work ?
推荐答案
我发现这篇文章 http://www.codeproject.com/Articles/142615/Custom-Media-Player-in-WPF-Part-1.aspx [
Hi,
I found this article http://www.codeproject.com/Articles/142615/Custom-Media-Player-in-WPF-Part-1.aspx[^]. The article uses a timer which will call the functionchangeStatus
every second to notify how much the video has progressed. I hope it was of some help.
这篇关于MediaElement播放状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文