S
S
Sergey2019-01-29 10:48:25
linux
Sergey, 2019-01-29 10:48:25

Linux player to listen to internet radio with autoreconnect?

I use the MOC console player, I listen to Internet radio, but due to the fact that the Internet through WI-FI often breaks and the radio stops, I have to manually restart
I thought to write a reconnect script, but I don’t know which parameter to check for the absence of a broadcast.
PS
When the broadcast falls off, it shows what it is broadcasting

mocp -i
State: PLAY
File: http://air.radiorecord.ru:805/rr_320
Title: Record Dance Radio
Artist: 
SongTitle: Record Dance Radio
Album: 
CurrentTime: 48:02
CurrentSec: 2882
Bitrate: 192kbps
AvgBitrate: 0kbps
Rate: 44kHz

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Kirillov, 2019-02-08
@alx0

From this - I use the music player daemon with the ncmpcpp console client.
Try it, a very powerful tool for listening to music.
Auto-reconnect happens automatically, I did not specifically set it up.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question