replace azuracast stream player #15

Closed
opened 9 months ago by deepend · 4 comments
deepend commented 9 months ago
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 9 months ago

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 2 months ago

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

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.