# Embed stream option not playing auto-hosted streams

**URL:** <https://discuss.dev.twitch.com/t/embed-stream-option-not-playing-auto-hosted-streams/25736>\
**Category:** API\
**Created:** [May 19, 2020, 6:55am UTC](https://discuss.dev.twitch.com/t/embed-stream-option-not-playing-auto-hosted-streams/25736 "2020-05-19T06:55:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steven\_Petruzzelli](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/steven_petruzzelli/32/8744_2.png) [@Steven\_Petruzzelli](https://discuss.dev.twitch.com/u/Steven_Petruzzelli)\
**Post date:** [May 19, 2020, 6:55am UTC](https://discuss.dev.twitch.com/t/embed-stream-option-not-playing-auto-hosted-streams/25736/1 "2020-05-19T06:55:58Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [May 19, 2020, 8:51am UTC](https://discuss.dev.twitch.com/t/embed-stream-option-not-playing-auto-hosted-streams/25736/2 "2020-05-19T08:51:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Steven\_Petruzzelli](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/steven_petruzzelli/32/8744_2.png) [@Steven\_Petruzzelli](https://discuss.dev.twitch.com/u/Steven_Petruzzelli)\
**Post date:** [May 19, 2020, 10:19pm UTC](https://discuss.dev.twitch.com/t/embed-stream-option-not-playing-auto-hosted-streams/25736/3 "2020-05-19T22:19:32Z")

</div>

Do you know how to do this?

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [May 19, 2020, 10:21pm UTC](https://discuss.dev.twitch.com/t/embed-stream-option-not-playing-auto-hosted-streams/25736/4 "2020-05-19T22:21:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [June 18, 2020, 10:21pm UTC](https://discuss.dev.twitch.com/t/embed-stream-option-not-playing-auto-hosted-streams/25736/5 "2020-06-18T22:21:17Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
