Todo List
This player controls an instance of HttpQ which in turn controls WinAmp all functions return null on failure
[line 32]
[line 34]
[line 33]
HttpQPlayer HttpQPlayer( [ $h = "localhost"], [ $pw = ""], [ $p = 4800])
This is the constructor, it defaults to localhost with port 4800
void add( $name, $url)
append a song to the playlist $name Name to be shown in the playlist $url URL of the song
void clear( )
clear the playlist
void clear_playlist( )
this flushes the playlist cache (I hope this means clear)
void delete_pos( $track)
This deletes a specific track
void get_now_playing( )
This returns the file information for the currently playing song
void get_random( )
This returns the current state of shuffle
void get_repeat( )
This returns the current state of the repeat
void get_tracks( )
This returns a delimiated string of all of the filenames current in your playlist
void get_volume( )
This returns the current volume
void next( )
go to next song
void pause( )
toggle pause mode on current song
void play( )
play the current song
void prev( )
go to previous song
void random( $value)
this toggles the random state of HttpQ
void repeat( $value)
This toggles the repeat state of HttpQ
void set_volume( $value)
This sets the volume as best it can, we go from a resolution of 100 --> 255 so it's a little fuzzy
void skip( $pos)
This skips to POS in the playlist
void state( )
This returns the current state of the httpQ player
void stop( )
stops the current song amazing!
void version( )
This gets the version of winamp currently running, use this to test for a valid connection
void volume_down( )
This decreases the volume by Winamp's defined amount
void volume_up( )
This increases the volume by Wimamp's defined amount