replace azuracast stream player #15

Closed
opened 2020-09-27 04:59:01 +00:00 by deepend · 4 comments
Owner

Maybe possible to replace the broken azuracast stream player with something?

Maybe possible to replace the broken azuracast stream player with something?
deepend added the
enhancement
label 2020-09-27 04:59:17 +00:00

This most certainly would be possible. The default player, located here is (from what I can tell) dynamically generated JS. However, one could possibly make a custom one using the AzuraCast API. There are numerous examples on how to access Now Playing data, with websockets and API endpoint examples, respectively. It seems like the websockets method is optimal, given that the API endpoint reportedly gives a "very brief (under 100ms) [...] performance penalty".

If needed I would be happy to cobble something together.

This most certainly would be possible. The default player, located [here](https://radio.tildeverse.org/public/tilderadio/embed) is (from what I can tell) dynamically generated JS. However, one could possibly make a custom one using the [AzuraCast API](https://docs.azuracast.com/en/developers/apis). There are numerous examples on how to access [Now Playing data](https://docs.azuracast.com/en/developers/apis/now-playing-data), with [websockets](https://docs.azuracast.com/en/developers/apis/now-playing-data#example-implementation-2) and [API endpoint](https://docs.azuracast.com/en/developers/apis/now-playing-data#example-implementation) examples, respectively. It seems like the websockets method is optimal, given that the API endpoint reportedly gives a "[very brief (under 100ms) [...] performance penalty](https://docs.azuracast.com/en/developers/apis/now-playing-data#disadvantages)". If needed I would be happy to cobble something together.

I failed to mention that the websockets method requires the use of a particular plugin, Nchan, according to the docs(first paragraph). Otherwise, the API is still (from what I can tell) usuable. Is the Nchan plugin installed on the tilderadio nginx installation? (assuming tilderadio uses nginx)

I failed to mention that the websockets method requires the use of a particular plugin, [Nchan](https://nchan.io/), according to [the docs](https://docs.azuracast.com/en/developers/apis/now-playing-data#live-websocketeventsource)(first paragraph). Otherwise, the API is still (from what I can tell) usuable. Is the Nchan plugin installed on the tilderadio nginx installation? (assuming tilderadio uses nginx)
Owner

the player seems to be working fine currently now that we updated azuracast

the player seems to be working fine currently now that we updated azuracast
ben closed this issue 2021-04-22 16:22:46 +00:00

Sorry, didn't know this wasn't an ongoing issue. Apologies for the necroposting.

Sorry, didn't know this wasn't an ongoing issue. Apologies for the necroposting.
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tilderadio/site#15
No description provided.