Jump to content

getting status of windows media player

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
fotrosi

fotrosi

    Newbie

  • Members
  • Pip
  • 2 posts
i want to get the status (play/pause/stop) of windows media player from my application.
please help me.
thanks.

#2
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Easy peasy. Add a COM reference to Windows Media Player (use wmp.dll) and import the WMPLib library into the project. Next, instantiate a WindowsMediaPlayerClass and use the object members within it to retrieve the status. :)
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#3
fotrosi

fotrosi

    Newbie

  • Members
  • Pip
  • 2 posts
thanks for your reply but i want to get the status of windows media player program, i don't want to play file with any control.
i want a form with a button and a label that when i press button, the status of windows media player show in the label.
windows media player is out of my program.

#4
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
I know - that's what a COM API reference does.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums