Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question