Great - any PC in my house can share click on a song and play it on their local box. But my server box has the good soundsystem hooked up.
So how easy would it be to click on songs and have the server play them.
OK - it would be a security flaw, but thats what firewalls are for.
Cheers,
Ian.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hrm, now that I can conceptualize it, I would definately help out/code it all if you like.. basically I'm thinking:
case 4{
generate "play.pls" and save to chosen temp dir (via config.php)
}
{ run "amarok play.pls" }
(play.pls consists of file=(actual dir)/(actual file) instead of the http reference)
That /should/; clear the currently running playlist, and play the songs in order on the server. Not only that, but it would update play counts, and process all the scripts on the playlist (submit to last.fm, etc)
Could possibly even have a couple buttons along the top if config is set to play on server: play, pause, stop, previous song, and next song; Depending on if amarok supports that through command-line arguments.
The more I play with the code, the more I like it, and the more inspired I get :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
One thing to note that I just realised; since the web server is (usually) not running as a regular user, that would have to be taken into account (have it already running, or start as $user (config.php, again).
There may be solutions I am not aware of at this point; brainstorming :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Great - any PC in my house can share click on a song and play it on their local box. But my server box has the good soundsystem hooked up.
So how easy would it be to click on songs and have the server play them.
OK - it would be a security flaw, but thats what firewalls are for.
Cheers,
Ian.
Hmm, this is really out of the range of what this script provides but unless it's already been done I'd take the challenge of cooking it up :P
Thanks for the input, as always ;)
Cheers,
Ryan
Hrm, now that I can conceptualize it, I would definately help out/code it all if you like.. basically I'm thinking:
case 4{
generate "play.pls" and save to chosen temp dir (via config.php)
}
{ run "amarok play.pls" }
(play.pls consists of file=(actual dir)/(actual file) instead of the http reference)
That /should/; clear the currently running playlist, and play the songs in order on the server. Not only that, but it would update play counts, and process all the scripts on the playlist (submit to last.fm, etc)
Could possibly even have a couple buttons along the top if config is set to play on server: play, pause, stop, previous song, and next song; Depending on if amarok supports that through command-line arguments.
The more I play with the code, the more I like it, and the more inspired I get :)
One thing to note that I just realised; since the web server is (usually) not running as a regular user, that would have to be taken into account (have it already running, or start as $user (config.php, again).
There may be solutions I am not aware of at this point; brainstorming :)
Here's a project that looks like it does exactly that, and with the same php/MtSQL setup:
http://sourceforge.net/project/screenshots.php?group_id=137701&ssid=11555
Maybe it could be integrated as "server playlist", or type: 4 - Play on server.
Would be good for pdas, psps,, cell phones(ish) or any other small web devices
If you use Firefox, try "AmaroK XUL Remote" extension.