Would it be possible to use an image, to check when there's a new track playing on Windows Media Player, and to put its name on the image, which would be used as a signature ?
Thanks !
Moderator: General Moderators
What is AMIP?
AMIP is an ultimate now playing (np) plug-in. The title stands for (Advanced mIRC Integration Plug-in).
It supports the following players: Winamp 2/5, Winamp 3, Apollo, QCD, Foobar2000 (fb2k) and iTunes.
AMIP integrates with IRC (mIRC, PIRCH, Klient, Bersirc) clients, IM and Blog clients. It can also post currently hearing song information to your site via FTP or HTTP GET and POST. AMIP can be used to generate Dynamic Image Signatures, such signatures can be used in forums, blogs or on your web site. One of the other most cool AMIP features is the Playlist Search (Ctrl+J).
That's a neat little solution that doesn't require PHP. But if you read the page, it supports exporting data to a text file. So if you wanted to make this a PHP experiment, you could use the text file data.Web integration
There are commands to parse file templates and to execute external processes. This allows to easily publish now playing information on the Web. The good starting point is the Web Integration help section and AMIPDS package available from downloads page. AMIPDS allows to create dynamic image signatures:
You can configure callbacks which will be invoked when player starts/quits and when playback is started/paused/stopped. By placing your code into the appropriate callback you can update song information on the Web upon event and perform other actions.
That sounds interesting... However, as said above, I am totally new to PHP. Would it be something hard to do ? Where should I start learning if I want to make a program like above?Sami wrote:So if you have a web server running on the same computer as Winamp or Windows Media Player, you could use the file_get_contents() PHP function to grab the information and then use another filesystem function to upload or transfer the data to an online server.
Then from there you can do the image processing with the PHP gd library and do the song display. And maybe even add a timer feature so if an update has not occured within x minutes, it'll show 'No Songs Playing' or 'Media Player Disabled'.