开发者

Controlling Windows Media Player through PHP / batch files

开发者 https://www.devze.com 2022-12-27 16:09 出处:网络
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 tu

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 coul开发者_开发知识库d 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.


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消