AxWindowsMediaPlayer 逐帧来回跳动
我有一个在 AxWindowsMediaPlayer
对象中播放的 WMV 文件。我有两个按钮,在视频暂停时启用。一个应该向后跳一帧,另一个应该向前跳一帧。
问题是,如果我在视频暂停时向 Ctlcontrols.currentPosition
添加 1/24 秒(典型帧的长度),则控件不会更新。
所以我尝试播放它并在播放后立即暂停,但这使得它在暂停之前播放大约一秒钟。
我该怎么做呢?是否可以使用 AxWindowsMediaPlayer 来实现?如果没有,我可以使用其他什么视频播放器?
编辑
哦,另一个想法...有没有办法让屏幕在设置currentPosition
后暂停时更新?
I have a WMV file playing in an AxWindowsMediaPlayer
object. I have two buttons that are enabled when the video is paused. One should skip backwards one frame, and the other should skip forwards one frame.
The problem is, if I just add 1/24ths of a second (the length of a typical frame) to Ctlcontrols.currentPosition
while the video is paused, the control doesn't update.
So I tried playing it and pausing it directly after, but that makes it play for about a second before pausing it.
How should I go about doing this? Is it even possible with AxWindowsMediaPlayer
? If not, what other video player could I use?
EDIT
Oh, another idea... is there a way to make the screen update while paused after setting currentPosition
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用的 API 是 IWMPControls2 的步进函数。
例如:
((IWMPControls2)axWindowsMediaPlayer1.Ctlcontrols).step(1);
The API to use is IWMPControls2' step function.
Eg:
((IWMPControls2)axWindowsMediaPlayer1.Ctlcontrols).step(1);