alanxoc3 / radico8

A pico8 web radio.
Other
14 stars 13 forks source link

Maybe auto-restart stream if it goes down with youtube api #26

Closed alanxoc3 closed 1 year ago

alanxoc3 commented 1 year ago

Apparently there is an api for creating a new live stream.

https://developers.google.com/youtube/v3/live/getting-started

The stream went down sometime in the past few weeks and I just set it up a few days ago through the youtube ui.

It'd be nice if I had a cron job that connects to the youtube api and creates a new livestream if it goes down again like that.

alanxoc3 commented 1 year ago

This is done as of yesterday! Stream should be much more resilient. Instead of reconnecting to the livestream through the API, I found a broadcast setting that disables that annoying "kill the broadcast when streaming ends" setting. But I had to use the API to set that.