Skip to content

xmoonlight/Icecast-Song-Info-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Icecast-Song-Info-php

Retrieve info about song from server status page (PHP-class)

USAGE:

$icecast=new IcecastSongInfo();

1. FETCH PAGE:
$icecast->fetch('http://your-Icecast-server.com/status.xsl'[,'proxy.com:port']);

2. QUERY SELECT:
$icecast->select('search-string-in-ALL-mount-points'[,'needed-param-substring'[,'mount-point-name']]);

needed-param-substring (string or substring, case insensitive):

  • Stream Title
  • Stream Description
  • Content Type
  • Mount started
  • Bitrate
  • Current Listeners
  • Peak Listeners
  • Stream Genre
  • Stream URL
  • Current Song
  • ...

EXAMPLE:

$icecast=new IcecastSongInfo();
if ($icecast->fetch('http://your-icecast-domain.com/status.xsl','proxy-site.com:port'))
	foreach ($icecast->select('MY RADIO','song','/128.mp3') as $i){
		 echo $i.'<br/>';
	}
else echo 'Fetching ERROR: '.$icecast->error();

About

Retrieve info about song from server status page (PHP-class)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages