|
-
Aug 16th, 2006, 10:33 AM
#1
Thread Starter
Member
[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.
Last edited by snappel; Aug 17th, 2006 at 06:07 AM.
-
Aug 16th, 2006, 11:12 AM
#2
Re: VB.NET / Windows Media Player 10
Have you tried "MyPlayer.controls.currentPosition"?
(where "MyPlayer" is the name of your player object variable...)
I wish I could think of something witty to put in my sig...
...Currently using VS2013...
-
Aug 17th, 2006, 03:55 AM
#3
Thread Starter
Member
Re: VB.NET / Windows Media Player 10
The 'controls' collections doesn't have a 'currentPosition' property... There must be a way of doing it...
-
Aug 17th, 2006, 05:29 AM
#4
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"
I wish I could think of something witty to put in my sig...
...Currently using VS2013...
-
Aug 17th, 2006, 06:07 AM
#5
Thread Starter
Member
Re: VB.NET / Windows Media Player 10
That's excellent, thanks for that - works a treat!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|