Author Topic: Restarting an http audio stream  (Read 3837 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! 

Atlanta Radio Guy

  • Guest
Re: Restarting an http audio stream
« Reply #2 on: February 13, 2024, 03:30:49 am »
Hi Roger,

I'm trying to do something similar to you, I think.  I'm playing an audio stream through Foobar2000.  On silence, I would like it to click the "play" button again.  I prefer the Foobar2000 media player but I could also use VLC.

Thanks for any tips you can provide!

Allen

Bigmike333

  • Newbie
  • *
  • Posts: 1
Re: Restarting an http audio stream
« Reply #3 on: June 10, 2024, 06:39:19 pm »
Here's how you can do it... Download AutoHotKey.exe and install it. VLC is controllable by hotkeys. Write a short script that will send Ctrl+1 to the VLC player. Assuming you have the desired file as the most recent one played, the VLC player will automatically load and launch that file or stream. I just  tested it, and it loaded and played my stream. If you need help, I can email you the little executable that will do this. I put the script executable on my desktop, and created a shortcut to it. I copy and paste that shortcut into the Silence Detector Open/Play1 field on the Alarm Task window.