Open huds601 opened 3 years ago
This is technically possible by long-polling the API about the current status of the Prediction. I don't like the long-polling paradigm though and would like to shelf this idea until EventSub gets a WebSocket or ServerSentEvents-type Transport. That way, we don't stress the Twitch API unnecessarily and don't require the Component to "phone home" (which is one goal I'd like to keep for it) to a relay server capturing the Webhooks of the existing EventSub Transport.
Seems reasonable if the API won't support it entirely in it's current form. Have Twitch indicated that they intend to provide support for this kind of polling?
So, not sure if the API allows for this, but if it’s possible to read the status (open/closed) and the current prediction (points predicted, percentages etc.) then making a visible indicator in LiveSplit would be pretty awesome!
I would imagine it as either a single or double height bar showing the question and 2 options, and coloured bars going across showing the amounts bet.
I can draw a mock-up if you like! Seemed like an interesting way of showing the predictions on screen.