News for hackers. Stuff that matters.
Re:RadioSide turns your spare device into a radio by AlexDragusin on Saturday July 06, 2024 @08:45AM (#40890113)
The current song won't work due to the stations not providing such through the <audio> tag, which is used to play the stream. Would loved that as well and when I designed it, was something I expected to be possible but then not with the current setup. If a solution becomes available to this effect, would definitelly implement it right away.
Re:RadioSide turns your spare device into a radio by conradfr on Saturday July 06, 2024 @12:03PM (#40891277)
Many do broadcast the data (shoutcast protocol). I do parse the data server side but I think you can do it client side by using hls.js [0]

Added bonus you can read HLS and MPD streams.

[0] https://github.com/video-dev/hls.js/issues/5706

Re:RadioSide turns your spare device into a radio by AlexDragusin on Saturday July 06, 2024 @12:55PM (#40891611)
Thanks, went through this also before launch, after implementation I was browsing stations and one started playing video :) Thats when I put HLS aside and will explore more once I can have certainty that video streams will not be part of it. Even if I hide the video, the data transfer would not be acceptable. It's unfortunate as the HLS streams start playing nearly instantly so it would been a better experience.
Re:RadioSide turns your spare device into a radio by conradfr on Saturday July 06, 2024 @01:09PM (#40891712)
Yes adding style="display:none" to your audio or video element works but will consume bandwidth.

https://github.com/video-dev/hls.js/issues/3480

Re:RadioSide turns your spare device into a radio by Tijdreiziger on Saturday July 06, 2024 @11:41AM (#40891079)
Most radio stations do provide ‘now playing’ info on their website. I acknowledge that it would be a lot of work to collate all these data sources, though.