Controlling Windows Media Player through PHP / batch files

Posted by Duroth on Stack Overflow See other posts from Stack Overflow or by Duroth
Published on 2010-04-19T19:14:59Z Indexed on 2010/04/28 18:27 UTC
Read the original article Hit count: 225

Filed under:
|
|

I'm currently writing a tiny webapp for my HTPC (actually, a PC serving as both a media player and web- / fileserver) that will allow me to remotely control the playing of audio, without having to turn on my TV just to switch songs.

I'm using Windows Media Player as my audio player of choice, and I thought I could control it through PHP's COM Class. Unfortunately, I've not been able to find any documentation or examples on controlling WMP through this interface.

Can anyone point me in the right direction here? A second (and much less preferable) solution would be to use PHP's exec() call to start batch files that, in turn, control WMP.

© Stack Overflow or respective owner

Related posts about windows-media-player

Related posts about php