| 
	
 | 
 Posted by shimmyshack on 05/01/07 13:17 
On May 1, 1:07 pm, Toby A Inkster <usenet200...@tobyinkster.co.uk> 
wrote: 
> Toby A Inkster wrote: 
> > Assuming that the audio is stored in files on the server. (e.g. MP3s, 
> > OGGs, etc) you could use the PHP system() function to launch command-line 
> > programs to play the files. There are various non-interactive command-line 
> > audio players available, such as mpg123, ogg123, etc. 
> 
> PS: See alsohttp://tobyinkster.co.uk/article/jukebox/ 
> 
> It's a Linux/GTK2 media player written in Perl. Only supports OGG files, 
> but adding support for other formats wouldn't be too difficult. 
> 
> More to the point though, it provides a TCP/IP interface, so your PHP 
> script could open a connection to localhost:5853 and send commands like: 
> 
>         list 
>         (retrieves list of available songs, each with a number) 
>         play 55 
>         (plays number 55 from above list) 
>         vdown 
>         (lower volume 10%) 
> 
> -- 
> Toby A Inkster BSc (Hons) ARCShttp://tobyinkster.co.uk/ 
> Geek of ~ HTML/SQL/Perl/PHP/Python/Apache/Linux 
 
mplayer is a cross platform and command line. 
vlc has remote control support via a few methods, telnet etc... and is 
virtually what you want already. A streaming player that can sit on 
the server, and broadcast anywhere else, via UDP TCP etc... or just 
play locally for your itrip to pick up. 
a quick exec or system call, or telnet session and your there. whether 
you have written a pure php web server, or are writing code that will 
be running as a module in apache/iss etc..
 
[Back to original message] 
 |