4 ms·
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
by AlexDragusin 2y ago
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.
- Tijdreiziger 2y agoMost 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.
- jactoryfoe 2y ago[dead]
- conradfr 2y agoMany 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 https://github.com/video-dev/hls.js/issues/5706
- AlexDragusin 2y agoThanks, 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.
- conradfr 2y agoYes adding style="display:none" to your audio or video element works but will consume bandwidth. https://github.com/video-dev/hls.js/issues/3480 https://github.com/video-dev/hls.js/issues/3480