views:

245

answers:

2

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.

A: 

Not sure that wmp is the best program for that. Try vlc(You might have to look around a bit)

NebNeb
I'm using VLC for playing video. I chose WMP specifically so I won't have to reset my playlist in VLC everytime I want to watch a video.
Duroth
I was just thinking that wmp would be more of an user app. I mean an app which would be controlled by pressing buttons, made to look good for regular users.
NebNeb
+1  A: 

to run WMP from DOS or command line. check this out: Control Windows Media Player Behaviour with Command Line Parameters

there are some command line codes you can use to control WMP. you need to see WMP documentation for more info

ermac2014