Interaction
icy.update_metadata
Update metata on an icecast mountpoint using the ICY protocol.
Type:
(?host : string, ?port : int, ?user : string, ?transport : http_transport,
?password : string, ?mount : string, ?icy_id : int, ?protocol : string,
?encoding : string?, ?headers : [string * string], [string * string]) ->
unit
Arguments:
host(of typestring, which defaults to"localhost")port(of typeint, which defaults to8000)user(of typestring, which defaults to"source")transport(of typehttp_transport, which defaults to<unix_transport>): Http transport. Usehttp.transport.sslorhttp.transport.secure_transport, when available, to enable HTTPS outputpassword(of typestring, which defaults to"hackme")mount(of typestring, which defaults to""): Source mount point. Mandatory when streaming to icecast.icy_id(of typeint, which defaults to1): Shoutcast source ID. Only supported by Shoutcast v2.protocol(of typestring, which defaults to"http"): Protocol to use. One of: "icy", "http" or "https"encoding(of typestring?, which defaults tonull): Encoding used to send metadata, default (UTF-8) if null.headers(of type[string * string], which defaults to[("User-Agent", "Liquidsoap/2.5.0+git@8f7582e (Unix; OCaml 5.4.0)")]): Additional headers.(unlabeled)(of type[string * string])
osc.bool
Read from an OSC path.
Type:
(string, bool) -> () -> bool
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of typebool): Initial value.
osc.float
Read from an OSC path.
Type:
(string, float) -> () -> float
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of typefloat): Initial value.
osc.float_pair
Read from an OSC path.
Type:
(string, (float * float)) -> () -> float * float
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of typefloat * float): Initial value.
osc.int
Read from an OSC path.
Type:
(string, int) -> () -> int
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of typeint): Initial value.
osc.int_pair
Read from an OSC path.
Type:
(string, (int * int)) -> () -> int * int
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of typeint * int): Initial value.
osc.native.float
Read from an OSC path.
Type:
(string, float) -> () -> float
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of typefloat): Initial value.
osc.native.float_pair
Read from an OSC path.
Type:
(string, (float * float)) -> () -> float * float
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of typefloat * float): Initial value.
osc.native.int
Read from an OSC path.
Type:
(string, int) -> () -> int
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of typeint): Initial value.
osc.native.int_pair
Read from an OSC path.
Type:
(string, (int * int)) -> () -> int * int
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of typeint * int): Initial value.
osc.native.on_float
Register a callback on OSC messages.
Type:
(string, ((float) -> unit)) -> unit
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of type(float) -> unit): Callback function.
osc.native.on_float_pair
Register a callback on OSC messages.
Type:
(string, (((float * float)) -> unit)) -> unit
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of type((float * float)) -> unit): Callback function.
osc.native.on_int
Register a callback on OSC messages.
Type:
(string, ((int) -> unit)) -> unit
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of type(int) -> unit): Callback function.
osc.native.on_int_pair
Register a callback on OSC messages.
Type:
(string, (((int * int)) -> unit)) -> unit
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of type((int * int)) -> unit): Callback function.
osc.native.on_string
Register a callback on OSC messages.
Type:
(string, ((string) -> unit)) -> unit
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of type(string) -> unit): Callback function.
osc.native.on_string_pair
Register a callback on OSC messages.
Type:
(string, (((string * string)) -> unit)) -> unit
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of type((string * string)) -> unit): Callback function.
osc.native.send_float
Send a value to an OSC client.
Type:
(host : string, port : int, string, float) -> unit
Arguments:
host(of typestring): OSC client address.port(of typeint): OSC client port.(unlabeled)(of typestring): OSC path.(unlabeled)(of typefloat): Value to send.
osc.native.send_float_pair
Send a value to an OSC client.
Type:
(host : string, port : int, string, (float * float)) -> unit
Arguments:
host(of typestring): OSC client address.port(of typeint): OSC client port.(unlabeled)(of typestring): OSC path.(unlabeled)(of typefloat * float): Value to send.
osc.native.send_int
Send a value to an OSC client.
Type:
(host : string, port : int, string, int) -> unit
Arguments:
host(of typestring): OSC client address.port(of typeint): OSC client port.(unlabeled)(of typestring): OSC path.(unlabeled)(of typeint): Value to send.
osc.native.send_int_pair
Send a value to an OSC client.
Type:
(host : string, port : int, string, (int * int)) -> unit
Arguments:
host(of typestring): OSC client address.port(of typeint): OSC client port.(unlabeled)(of typestring): OSC path.(unlabeled)(of typeint * int): Value to send.
osc.native.send_string
Send a value to an OSC client.
Type:
(host : string, port : int, string, string) -> unit
Arguments:
host(of typestring): OSC client address.port(of typeint): OSC client port.(unlabeled)(of typestring): OSC path.(unlabeled)(of typestring): Value to send.
osc.native.send_string_pair
Send a value to an OSC client.
Type:
(host : string, port : int, string, (string * string)) -> unit
Arguments:
host(of typestring): OSC client address.port(of typeint): OSC client port.(unlabeled)(of typestring): OSC path.(unlabeled)(of typestring * string): Value to send.
osc.native.string
Read from an OSC path.
Type:
(string, string) -> () -> string
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of typestring): Initial value.
osc.native.string_pair
Read from an OSC path.
Type:
(string, (string * string)) -> () -> string * string
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of typestring * string): Initial value.
osc.on_bool
Register a callback on OSC messages.
Type:
(string, ((bool) -> unit)) -> unit
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of type(bool) -> unit): Callback function.
osc.on_float
Register a callback on OSC messages.
Type:
(string, ((float) -> unit)) -> unit
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of type(float) -> unit): Callback function.
osc.on_float_pair
Register a callback on OSC messages.
Type:
(string, (((float * float)) -> unit)) -> unit
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of type((float * float)) -> unit): Callback function.
osc.on_int
Register a callback on OSC messages.
Type:
(string, ((int) -> unit)) -> unit
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of type(int) -> unit): Callback function.
osc.on_int_pair
Register a callback on OSC messages.
Type:
(string, (((int * int)) -> unit)) -> unit
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of type((int * int)) -> unit): Callback function.
osc.on_string
Register a callback on OSC messages.
Type:
(string, ((string) -> unit)) -> unit
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of type(string) -> unit): Callback function.
osc.on_string_pair
Register a callback on OSC messages.
Type:
(string, (((string * string)) -> unit)) -> unit
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of type((string * string)) -> unit): Callback function.
osc.send_bool
Send a value to an OSC client.
Type:
(host : string, port : int, string, bool) -> unit
Arguments:
host(of typestring): OSC client address.port(of typeint): OSC client port.(unlabeled)(of typestring): OSC path.(unlabeled)(of typebool): Value to send.
osc.send_float
Send a value to an OSC client.
Type:
(host : string, port : int, string, float) -> unit
Arguments:
host(of typestring): OSC client address.port(of typeint): OSC client port.(unlabeled)(of typestring): OSC path.(unlabeled)(of typefloat): Value to send.
osc.send_float_pair
Send a value to an OSC client.
Type:
(host : string, port : int, string, (float * float)) -> unit
Arguments:
host(of typestring): OSC client address.port(of typeint): OSC client port.(unlabeled)(of typestring): OSC path.(unlabeled)(of typefloat * float): Value to send.
osc.send_int
Send a value to an OSC client.
Type:
(host : string, port : int, string, int) -> unit
Arguments:
host(of typestring): OSC client address.port(of typeint): OSC client port.(unlabeled)(of typestring): OSC path.(unlabeled)(of typeint): Value to send.
osc.send_int_pair
Send a value to an OSC client.
Type:
(host : string, port : int, string, (int * int)) -> unit
Arguments:
host(of typestring): OSC client address.port(of typeint): OSC client port.(unlabeled)(of typestring): OSC path.(unlabeled)(of typeint * int): Value to send.
osc.send_string
Send a value to an OSC client.
Type:
(host : string, port : int, string, string) -> unit
Arguments:
host(of typestring): OSC client address.port(of typeint): OSC client port.(unlabeled)(of typestring): OSC path.(unlabeled)(of typestring): Value to send.
osc.send_string_pair
Send a value to an OSC client.
Type:
(host : string, port : int, string, (string * string)) -> unit
Arguments:
host(of typestring): OSC client address.port(of typeint): OSC client port.(unlabeled)(of typestring): OSC path.(unlabeled)(of typestring * string): Value to send.
osc.string
Read from an OSC path.
Type:
(string, string) -> () -> string
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of typestring): Initial value.
osc.string_pair
Read from an OSC path.
Type:
(string, (string * string)) -> () -> string * string
Arguments:
(unlabeled)(of typestring): OSC path.(unlabeled)(of typestring * string): Initial value.
prometheus.counter
Register a prometheus counter
Type:
(help : string, ?namespace : string, ?subsystem : string, labels : [string],
string) -> (label_values : [string]) -> (float) -> unit
Arguments:
help(of typestring): Help of the metricnamespace(of typestring, which defaults to""): namespace of the metricsubsystem(of typestring, which defaults to""): subsystem of the metriclabels(of type[string]): labels for the metric(unlabeled)(of typestring): Name of the metric
prometheus.gauge
Register a prometheus gauge
Type:
(help : string, ?namespace : string, ?subsystem : string, labels : [string],
string) -> (label_values : [string]) -> (float) -> unit
Arguments:
help(of typestring): Help of the metricnamespace(of typestring, which defaults to""): namespace of the metricsubsystem(of typestring, which defaults to""): subsystem of the metriclabels(of type[string]): labels for the metric(unlabeled)(of typestring): Name of the metric
prometheus.summary
Register a prometheus summary
Type:
(help : string, ?namespace : string, ?subsystem : string, labels : [string],
string) -> (label_values : [string]) -> (float) -> unit
Arguments:
help(of typestring): Help of the metricnamespace(of typestring, which defaults to""): namespace of the metricsubsystem(of typestring, which defaults to""): subsystem of the metriclabels(of type[string]): labels for the metric(unlabeled)(of typestring): Name of the metric
server.register
Register a command. You can then execute this function through the server, either telnet or socket.
Type:
(?namespace : string?, ?description : string, ?usage : string?, string,
((string) -> string)) -> unit
Arguments:
namespace(of typestring?, which defaults tonull): Used to group multiple commands for the same functionality. If specified, the command will be namednamespace.command.description(of typestring, which defaults to"No documentation available."): A description of your command.usage(of typestring?, which defaults tonull): Description of how the command should be used.(unlabeled)(of typestring): Name of the command.(unlabeled)(of type(string) -> string): Function called when the command is executed. It takes as argument the argument passed on the commandline and returns the message which will be printed on the commandline.