Embedded Windows Media Player Set Position is slow

旧街凉风 提交于 2019-12-11 02:27:56

问题


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?

来源:https://stackoverflow.com/questions/6217071/embedded-windows-media-player-set-position-is-slow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!