Closed frabnet closed 6 months ago
Internet radio stations cannot be played in jukebox mode due to a design flaw in the Subsonic API. The jukeboxControl endpoint only allows clients to pass song IDs, and internet radio stations are not a regular song. The solution would be to propose an OpenSubsonic extension that allows radio IDs to be passed to jukeboxControl, and for Gonic as well as the clients to implement the extension.
@dweymouth the jukebox can set any sort of ID, be it podcast IDs or song IDs or whatever . much like setRating its a bit polymorphic
looks like i just never implemented internet radio IDs where, but now you can jukeboxControl?action=set&id=ir-1
The spec for ID says
ID of song to add to the jukebox playlist.
It's nice that Gonic supports an extended version of the API (now after your fix). And DSub does too I guess. I still think an OpenSubsonic extension is needed though as the API does not guarantee that IDs are unique across media types (a radio station ID could be the same as a song ID for some servers) so clients shouldn't assume they can pass a radio ID to jukeboxControl. When I implement jukebox in Supersonic, I will probably fall back to local playback for radio stations.
Hi everyone, I'm trying to use Gonic in Jukebox mode to play Internet Radio streams locally on the server.
gonic version: v0.16.3
Built with docker-compose.yml:
Added two radio stations on the Gonic web interface:
Using DSub Android Client, local music is played correctly, but when I play Web Radio it doesn't ouput any audio, and following error is logged:
Things I've tried:
# mpv -audio-device=alsa/default:CARD=Set http://onair18.xdevel.com:8136/
Any clue if this is a Gonic bug or other test to do?