Skip to content

Instantly share code, notes, and snippets.

@rmcauley
Created August 10, 2016 08:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmcauley/07d5df741d495dade717ef8034a4c3f1 to your computer and use it in GitHub Desktop.
Save rmcauley/07d5df741d495dade717ef8034a4c3f1 to your computer and use it in GitHub Desktop.
set("log.file",true)
set("log.file.path","/tmp/basic-radio.log")
set("log.stdout",true)
set("log.level",5)
set("harbor.bind_addr","0.0.0.0")
def my_request_function() =
result = get_process_output("../resources/php/executeable/liquidsoap.php")
# Create and return a request using this result
request.create(result)
end
# Create the source
s = mksafe(request.dynamic(my_request_function))
source = output.icecast(%mp3, host = "**.**.***.***", port = 8000, password = "****", mount = "radio.ogg")
source(s)
#/usr/bin/php
<?php
$url = "http://kaltura11.cdnwiz.com/path/to/music/file";
echo $url;;;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment