Author Topic: Restarting an http audio stream  (Read 11 times)

rogerB

  • Guest
Restarting an http audio stream
« on: September 12, 2021, 10:27:37 pm »
I'm trying to use Pira to detect loss of an internet radio stream I am recording (logging) on the same PC.
I want to detect when it goes silent, usually caused by a disconnection of the audio webstream (e.g. wifi or incoming internet stopping).
The webstream URL will play in any browser or a player such as VLC or MPlayer, so ideally when Pira detects loss of audio, it relaunches the webstream.   However, when VLC or MPlayer (or a browser) goes silent, Pira need to close and relaunch the browser/player and go straight to the webstream address.  Any ideas how I can get it to do this?
Thanks   

rogerB

  • Guest
Re: Restarting an http audio stream
« Reply #1 on: September 13, 2021, 12:04:57 am »
Ah. Worked it out.
Used a dedicated browser with home page set to the webstream
Pira set to kill the browser then restart it on silence.
Simples!