Very interesting, didn't know that.
I imagine it's not that easy as putting

Code:
--------------------
    def handler()
  system("/path/to/your/shutdown-script")
  end
  source = on_blank(handler,source)
  
--------------------

into the Liquidsoap recipe (*.liq file)

Code:
--------------------
    #!/usr/bin/liquidsoap
  # set the path and permissions for the logfile
  set("log.file.path","/var/log/liquidsoap/phono.log")
  set("log.file.perms",777)
  set("log.unix_timestamps",true)
  #input from soundcard
  phono = input.alsa(bufferize=true,fallible=false,device="hw:1")
  #stream it to local icecast, default port and password
  
output.icecast(%ogg(%flac(samplerate=44100,channels=2,compression=5,bits_per_sample=16)),
 mount="/phono", name="Phono", format="audio/ogg", description="Turntable 
FLAC", url="http://192.168.178.200”";, genre = "Misc", phono)
--------------------

?

Also, I didn't find information whether the length of the blank can be
configured with on_blank in the same way as with strip_blank
(strip_blank(max_blank=5...)?



PCP (always latest version) on RasPi 3 with PhatDac (player & server)
PCP on several RasPis 2 +3
2 Airplay speakers (Sony SA-NS510) integrated via Airplay Bridge Plugin
------------------------------------------------------------------------
streampunk's Profile: http://forums.slimdevices.com/member.php?userid=66210
View this thread: http://forums.slimdevices.com/showthread.php?t=49584

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to