[RESOLVED] VB.NET / Windows Media Player 10
I can't seem to retrieve the current position (in seconds) of a playing MPEG with WMP 10. With older versions, I used something like...
VB Code:
videoposition = mywmpcontrol.CurrentPosition
I've tried all kinds of things with WMP 10, but no joy. Everything else is largely the same, except that you're dealing with a playlist, and so have to use the 'currentMedia' collection.
Anybody got any ideas?
Thanks.
Re: VB.NET / Windows Media Player 10
Have you tried "MyPlayer.controls.currentPosition"?
(where "MyPlayer" is the name of your player object variable...)
Re: VB.NET / Windows Media Player 10
The 'controls' collections doesn't have a 'currentPosition' property... There must be a way of doing it...
Re: VB.NET / Windows Media Player 10
My bad, sorry.
The player controls property conflicts with the regular Controls property.
It's called "Ctlcontrols.currentPosition"
Re: VB.NET / Windows Media Player 10
That's excellent, thanks for that - works a treat!