Results 1 to 5 of 5

Thread: [RESOLVED] VB.NET / Windows Media Player 10

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2005
    Posts
    54

    Resolved [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:
    1. 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.

  2. #2
    Fanatic Member pax's Avatar
    Join Date
    Mar 2001
    Location
    Denmark
    Posts
    840

    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...

  3. #3

    Thread Starter
    Member
    Join Date
    Sep 2005
    Posts
    54

    Re: VB.NET / Windows Media Player 10

    The 'controls' collections doesn't have a 'currentPosition' property... There must be a way of doing it...

  4. #4
    Fanatic Member pax's Avatar
    Join Date
    Mar 2001
    Location
    Denmark
    Posts
    840

    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...

  5. #5

    Thread Starter
    Member
    Join Date
    Sep 2005
    Posts
    54

    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
  •  



Click Here to Expand Forum to Full Width