1
0
Fork 0

Add streaminginternet output.

liquidsoap-2.2-streaminginternet
Icedream 2023-05-19 12:34:34 +02:00
parent ee5fb8fd2f
commit c0e84f1460
Signed by: icedream
GPG Key ID: 468BBEEBB9EC6AEA
2 changed files with 23 additions and 0 deletions

View File

@ -6,3 +6,7 @@ internal_icecast_password=environment.get(default="source", "INTERNAL_ICECAST_PA
rektfm_username=environment.get("REKTNETWORK_USERNAME") rektfm_username=environment.get("REKTNETWORK_USERNAME")
rektfm_password=environment.get("REKTNETWORK_PASSWORD") rektfm_password=environment.get("REKTNETWORK_PASSWORD")
streaminginternet_username=environment.get("STREAMINGINTERNET_USERNAME")
streaminginternet_password=environment.get("STREAMINGINTERNET_PASSWORD")
streaminginternet_channel=environment.get("STREAMINGINTERNET_CHANNEL")

View File

@ -154,3 +154,22 @@ if null.defined(rektfm_username) and null.defined(rektfm_password) then
a, a,
)) ))
end end
# streaminginternet
if null.defined(streaminginternet_username) and null.defined(streaminginternet_password) and null.defined(streaminginternet_channel) then
setup_harbor_stream_api(output.icecast(
id="out_a_streaminginternet",
fallible=true,
mount="#{null.get(streaminginternet_channel)}/master_signal",
port=61120,
host="publish.streaminginter.net",
user=null.get(streaminginternet_username),
name=null.get(stream_name),
description=null.get(stream_description),
password=null.get(streaminginternet_password),
start=true,
format="audio/flac",
%flac,
a,
))
end