1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
title: HTTP input
h3. HTTP input
Liquidsoap can create a source that pulls its data from an HTTP location. This location can
be a distant file or playlist, or an icecast or shoutcast stream.
To use it in your script, simply create a source that way:
%%(http_source.liq)
# url is a HTTP location, like
# http://radiopi.org:8080/reggae
source = input.http(url)
%%
This operator will pull regulary the given location for its data, so it should be used for
locations that are assumed to be available most of the time. If not, it might generate unnecessary
traffic and polute the logs. In this case, it is perhaps better to inverse the paradigm and
use the "input.harbor":harbor.html operator.
|