#!/usr/bin/liquidsoap # Log dir set("log.file.path","/tmp/basic-radio.log") set("harbor.bind_addr","0.0.0.0") live = input.harbor("test-harbor",port=8080,password="xxx") # Music myplaylist = playlist("/home/live/radio/music.m3u") # Some jingles jingles = playlist("~/radio/jingles.m3u") # If something goes wrong, we'll play this security = single("~/radio/sounds/default.ogg") # Start building the feed with music radio = myplaylist # Now add some jingles radio = random(weights = [1, 4],[jingles, radio]) # And finally the security radio = fallback(track_sensitive = false, [radio, security]) radio = fallback(track_sensitive=false, [live,files]) # Stream it out output.icecast(%vorbis, host = "localhost", port = 8000, password = "hackme", mount = "basic-radio.ogg", radio)
# Stream it out output.icecast(%vorbis, host = "localhost", port = 8000, password = "hackme", mount = "basic-radio.ogg", radio)
/etc/liquidsoap/lig.cfg
liquidsoap /etc/liquidsoap/lig.cfg
#!/usr/bin/liquidsoap