|
|
| |||||||||
|
Icecast Admin Interface
Overview
Metadata UpdatedescriptionThis function provides the ability for either a source client or any external program to update the metadata information for a particular mountpoint. example http://host:port/admin/metadata?mount= /mystream&mode=updinfo&song=ACDC+Back+In+Black Fallback UpdatedescriptionThis function provides the ability for either a source client or any external program to update the "fallback mountpoint" for a particular mountpoint. Fallback mounts are those that are used in the even of a source client disconnection. If a source client disconnects for some reason that all currently connected clients are sent immediately to the fallback mountpoint. example http://host:port/admin/fallbacks?mount= /mystream.ogg&fallback=/myfallback.ogg List ClientsdescriptionThis function lists all the clients currently connected to a specific mountpoint. The results are sent back in XML form. example http://host:port/admin/listclients?mount= /mystream.ogg Move Clients (Listeners)descriptionThis function provides the ability to migrate currently connected listeners from one mountpoint to another. This function requires 2 mountpoints to be passed in: mount (the *from* mountpoint) and destination (the *to* mountpoint). After processing this function all currently connected listeners on mount will be connected to destination. Note that the destination mountpoint must exist and have a sounce client already feeding it a stream. example http://host:port/admin/moveclients?mount= /mystream.ogg&destination=/mynewstream.ogg Kill Client (Listener)descriptionThis function provides the ability to disconnect a specific listener of a currently connected mountpoint. Listeners are identified by a unique id that can be retrieved by via the "List Clients" admin function. This id must be passed in to the request. After processing this request, the listener will no longer be connected to the mountpoint. example http://host:port/admin/killclient?mount= /mystream.ogg&id=21 Kill SourcedescriptionThis function will provide the ability to disconnect a specific mountpoint from the server. The mountpoint to be disconnected is specified via the variable "mount". example http://host:port/admin/killsource?mount= /mystream.ogg Admin Functions (general)StatsdescriptionThis admin function provides the ability to query the internal statistics kept by the icecast server. Almost all information about the internal workings of the server such as the mountpoints connected, how many client requests have been served, how many listeners for each mountpoint, etc, are available via this admin function. Note that this admin function can also be invoked via the http://server:port/admin/stats.xml syntax, however this syntax should not be used and will eventually become deprecated. example http://host:port/admin/stats List MountsdescriptionThis admin function provides the ability to view all the currently connected mountpoints. example http://host:port/admin/listmounts Web-Based Admin InterfaceAs an alternative to manually invoking these URLs, a web-based admin interface was developed. This interface provides the same functions that were identified and described above but presents them in a little nicer way. The Web-Based Admin Interface to icecast is shipped with icecast provided in the "admin" directory and comes ready to use. All the user needs to do is set the path to this directory in the config file via theThe Web-Based Admin Interface is a series of XSLT files which are used to display all the XML obtained via the URL admin interface. This can be changed and modified to suit the user`s need. Knowledge of XSLT and transformations from XML to HTML are required in order to make changes to these scripts. The main URL for the Web-Based Admin Interface is http://host:port/admin/stats.xsl From this URL all of the other admin functions can be exercised. Modification of existing XSLT transforms in /admin is allowed, but new files cannot be created here. Creation of new XSLT transforms as well as modification of existing transforms is allowed in /web. These work using the document returned by /admin/stats.xml. To see the XML document that is applied to each admin XSLT, just change the .xsl to .xml in your request (i.e. /admin/listclients.xml). You can then code your XSLT transform accordingly. Source: http://www.icecast.org/docs/ |
| ||||||||
back | top | ||||||||||