Kruiz-Control icon indicating copy to clipboard operation
Kruiz-Control copied to clipboard

YouTube integration

Open ss44 opened this issue 4 years ago • 3 comments

Loved using Kruiz-Control on my twitch stream and wanted to switch over to using it with YouTube also.

I was reading over the (YT docs)[https://developers.google.com/youtube/v3/live/docs/liveChatMessages/list#pollingIntervalMillis] and it seems like the API would be polling instead of websockets.

Curious if you had any thoughts on this or how the integration would look? I'd be willing to do my own PR just figured I'd check-in to see if you had given this any other thought.

ss44 avatar Oct 04 '21 04:10 ss44

Hey there!

The issue is authentication. Setting up the polling and other API features would hopefully be easy after that.

Given it requires the OAuth flow, there's not an immediate path forward for integration. We'd have to set up another tool for authenticating users and store the access and refresh codes. I haven't fleshed out how it would fully work yet.

- Kruiser

Kruiser8 avatar Oct 04 '21 06:10 Kruiser8

I'd imagine it would require users to setup their own app/dev credentials on google then implementing something like:

https://developers.google.com/youtube/v3/guides/auth/client-side-web-apps?

Or would the goal be to not require users to create their own dev secrets? In which case need some kind of project proxy to obtain the oauth?

ss44 avatar Oct 07 '21 18:10 ss44

We could ask people to get their own credentials. Either way, we would still have to do the oauth flow which "requires" a user interface.

So, regardless of where the credentials come from, we need a way to generate an access/refresh token and then use those to authenticate against the API.

Kruiser8 avatar Oct 08 '21 06:10 Kruiser8