I see now there is alert box. But I am having problems using it with Iframes or anything else to make it useful… It is saying site refused to connect. Very much like to overlay to my website I have setup for streaming content to twitch.
Check here for what I mean https://dashboard.twitch.tv/u/<Username>/stream-alerts
Bottom right gives you a URL, that you can run in your browser and hit test alert… works great!!!
https://dashboard.twitch.tv/widgets/alertbox<ID>
Any ideas on how to make that work? Tried the trick -
On June 10, we began requiring a “parent” to be defined in the embed URL, which specifies the website URL where you are embedding Twitch
The alerts are not intended to be run inside an iframe, which is why it explicitly blocks you from doing so, they are designed to be the top level of a browser source.
The only supported embeds are Twitch Streams, Twitch VoDs, and Twitch Chat, as documented in the embed docs https://dev.twitch.tv/docs/embed/. The parent param that you mentioned is for use in those embeds.
The plan was to Iframe it as an overlay. My “Browser Source URL” is safely hidden within a flask app and only the alert, when fired, is displayed/played.
Another thing, I am not publishing this site to the web. It is local to my network, packaged into a docker container, and another “streaming” docker container is relaying everything to twitch.