Embed stream option not playing auto-hosted streams

I’m looking for assistance on how to embed twitch streams onto my website and have them play the selected auto-hosts that I have playing through my stream when I’m offline. Is there a way to do this? Currently, the embedded stream on my website only plays when I’m live. Thank you!

You’d have to write code to detect that the host is running and embed the hosted stream instead

The embed won’t do it on it’s own

Do you know how to do this?

You’d need a chat bot to read from chat to detect the host mode

That would update your database/other storage and that will be used to popualte the HTML template.