Thanks @BarryCarlyon, things are now more clear to me. The thing with the title is indeed an issue or could be.
Here is a more detailed view of what I want to achieve:
I have a platform https://larastreamers.com/ where I show upcoming streams from streamers. This currently only works for YouTube streams, but I want to support twitch too.
The way it currently works is
- streamer submits the URL of an already schedule YT stream
- I regularly check if this stream is live, if it is, I set it to “live”, later than to “finished”
The question for me is, since Twitch works quite differently, if I can integrate Twitch here too, so I can list upcoming Twitch “streams”, and also mark them as “live” when they are live.
My initial idea was:
- user submits his twitch channel
- I get the broadcaster id and then get the schedule
- then store the streams of the schedule as “streams”
- add subscribe to the channel “online” and “offline” events
- when the channel goes live, I want to find the right stream (current issue) and set it to live
- when the channel goes offline, I want to find the right stream (current issue) and set it to finished.
After that, the stream is only shown on the archive.
It is pretty clear now to me that my platform is built for YouTube, but it would be cool if I find a way to support Twitch somehow too.
