Apache::iTunes - control iTunes from mod_perl
PerlSetEnv APACHE_ITUNES_HTML /web/iTunes.html
PerlSetEnv APACHE_ITUNES_URL http://10.0.1.2:8080/iTunes/
PerlSetEnv APACHE_ITUNES 1
THIS IS ALPHA SOFTWARE.
This module is currently unmaintained. If you want to take over the care and feeding, write to email@example.com.
I am still developing Mac::iTunes, and this module depends mostly on that. This handler does most of the stuff I need it to do, so further development depends on what people ask for or contribute. :)
After the base URL to the iTunes handler, you can add commands in the path info. Only the first command matters.
Does just what it says, just like the iTunes controller.
Restarts the current track
Sets the volume to a value between 0 and 100. Numbers below 0 are taken as 0, and those above 100 are taken as 100.
Changes the playlist view to <playlist> if it exists.
Plays track number <number> in <playlist>.
This module uses Text::Template because I expect people to hack it for their own templating system (please send back modifications!).
The base URL (from APACHE_ITUNES_URL environment variable)
The current track name
The current playlist
A list of the playlists
A list of tracks in the current playlist (in $playlist)
The version of Apache::iTunes
The URL to the mod_perl handler so it can reference itself.
The location of the template file.
* even though this is mod_perl, Mac::iTunes is still pretty slow. when i get to the optimization stage, Mac::iTunes will get faster and so will this.
This source is in GitHub
brian d foy, <firstname.lastname@example.org>
Copyright (c) 2002-2007, brian d foy, All Rights Reserved.
You may redistribute this under the same terms as Perl itself.
To install Apache::iTunes, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.