开发者

Embedded Windows Media Player Set Position is slow

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 t开发者_如何转开发o 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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜