嵌入式 Windows Media Player 设置位置速度很慢
因此,我的窗体上有一个 AxWindowsMediaPlayer 控件,我希望在其播放时将播放位置更改为另一个点。我发现:
mediaplayer.Ctlcontrols.currentPosition = <position in seconds>
但是如果我在播放时调用它,它确实会跳到正确的位置并声称继续播放,但实际上视频停止播放。
我尝试过在改变位置之前暂停/停止然后再玩,但没有运气。
我该如何解决这个问题?
更新
因此,如果我等待足够长的时间,播放将再次恢复,但会在我告诉它跳转到的点之后几秒钟。
例如,如果我告诉它在播放时跳到 15 秒,它会跳到 15 秒,Ctlcontrols.currentPosition
将继续递增,但视频实际上直到大约 5 秒才会再次开始播放几秒钟后。
那么...为什么我加载文件时没有五秒的延迟?当我加载它时它会立即播放...我该如何消除跳转后的延迟?
So, I have an AxWindowsMediaPlayer control on my form, and I'm looking to, while its playing, change the playback position to another point. I found:
mediaplayer.Ctlcontrols.currentPosition = <position in seconds>
But If I call that whilst its playing, it does jump to the right position and claims to keep playing, but in reality the video stops playing.
I've tried pausing/stopping before I change the position and playing afterwards, but no luck.
How can I get around this?
UPDATE
So, if I wait long enough, playback will resume again, but it will be a few seconds after the point I told it to jump to.
For example, if I tell it to jump to 15 seconds while its playing, it will jump to 15, Ctlcontrols.currentPosition
will continue to increment, but the video won't actually start playing again until about five seconds later.
So... why isn't there a five second delay when I load the file? It plays instantaneously when I load it in... And how do I get rid of the delay after the jump?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论