Tech Off Thread

6 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Get current timestamp from WMP control?

Back to Forum: Tech Off
  • User profile image
    jsampsonPC

    Anybody know if you can get the current timestamp from a windows media control?

    Jonathan

  • User profile image
    jsampsonPC

    hellew? Smiley

  • User profile image
    Minh

    jsampsonPC wrote:
    ...current timestamp from a windows media control
    Huh?

  • User profile image
    Rossj

    Minh wrote:
    
    jsampsonPC wrote:...current timestamp from a windows media control
    Huh?


    Current amount of time that has played with the current media.

  • User profile image
    Ion Todirel

    use Ctlcontrols.currentPositionString property.

    If your control is named: player, then player.Ctlcontrols.currentPositionString

    EDIT: And use a timer to update a label text at every 500ms or something.

  • User profile image
    AdamKinney

    And if you're using the ActiveX control embedded in a web page the property is "p.controls.currentPosition" where p is equal to the object element.  The value returned is the number of seconds.

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.