# Hosting does not work on embed?

**URL:** <https://discuss.dev.twitch.com/t/hosting-does-not-work-on-embed/4799>\
**Category:** Chat and IRC\
**Created:** [February 16, 2016, 4:51am UTC](https://discuss.dev.twitch.com/t/hosting-does-not-work-on-embed/4799 "2016-02-16T04:51:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![uncivilized\_gaming](https://avatars.discourse-cdn.com/v4/letter/u/d78d45/32.png) [@uncivilized\_gaming](https://discuss.dev.twitch.com/u/uncivilized_gaming)\
**Post date:** [February 16, 2016, 4:51am UTC](https://discuss.dev.twitch.com/t/hosting-does-not-work-on-embed/4799/1 "2016-02-16T04:51:21Z")

</div>

Hello

Test Website.  
[http://4netmarketing.com/foruminsert.htm](http://4netmarketing.com/foruminsert.htm)

Real Website  
[http://dayzdukes.com/](http://dayzdukes.com/)

I am trying to host people on my twitch channel and have it show on my website. ( With their permission)

I got the embed to work, but even though I am hosting that channel, my embed on my website still shows that I am offline. Is there a way I can use this so that I can host people on the embed without having to change the coding.

What I would like to do. Go to my website, type in the embedded chat that is on my website

“/host blablabla”

Then show that streamer on my website through a host. Any ideas?

Kind of like what they have here. [http://www.dayztv.com/live/](http://www.dayztv.com/live/)

Let me know if you have any ideas. Thank You!

---

<div class="post-metadata">

**Author:** ![uncivilized\_gaming](https://avatars.discourse-cdn.com/v4/letter/u/d78d45/32.png) [@uncivilized\_gaming](https://discuss.dev.twitch.com/u/uncivilized_gaming)\
**Post date:** [February 16, 2016, 5:15am UTC](https://discuss.dev.twitch.com/t/hosting-does-not-work-on-embed/4799/2 "2016-02-16T05:15:24Z")

</div>

I am reading this

> [@Embedding/Hosting](https://discuss.dev.twitch.com/t/embedding-hosting/3408):
>
> Is there a way to embed my stream to a page that also changes when I host someone else’s stream? Like, If I embed my stream on my website and then host a friends stream, is there a way for my streams embed to show the hosted stream?

---

<div class="post-metadata">

**Author:** ![uncivilized\_gaming](https://avatars.discourse-cdn.com/v4/letter/u/d78d45/32.png) [@uncivilized\_gaming](https://discuss.dev.twitch.com/u/uncivilized_gaming)\
**Post date:** [February 16, 2016, 6:46am UTC](https://discuss.dev.twitch.com/t/hosting-does-not-work-on-embed/4799/3 "2016-02-16T06:46:03Z")

</div>

Can anyone move this to the right section. I realized I have this in chat help and that is not where I wanted it to go.

---

<div class="post-metadata">

**Author:** ![matt\_thomas](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/matt_thomas/32/710_2.png) [@matt\_thomas](https://discuss.dev.twitch.com/u/matt_thomas)\
**Post date:** [February 17, 2016, 5:56am UTC](https://discuss.dev.twitch.com/t/hosting-does-not-work-on-embed/4799/4 "2016-02-17T05:56:55Z")

</div>

I made a sample php code on [http://twitch.apiexampl.es](http://twitch.apiexampl.es)

Specifically [http://twitch.apiexampl.es/test.php.txt](http://twitch.apiexampl.es/test.php.txt)

In this code the array $channels = array("") can be a comma delimited list of streamers… Then it will find the most popular one of them and embed that stream. As a backup you can set it to play the most popular DayZ stream on twitch if none of your selected channels are available.

I hope this helps you.

---

<div class="post-metadata">

**Author:** ![uncivilized\_gaming](https://avatars.discourse-cdn.com/v4/letter/u/d78d45/32.png) [@uncivilized\_gaming](https://discuss.dev.twitch.com/u/uncivilized_gaming)\
**Post date:** [February 25, 2016, 3:55pm UTC](https://discuss.dev.twitch.com/t/hosting-does-not-work-on-embed/4799/5 "2016-02-25T15:55:44Z")

</div>

Thank you very much. I will look into this asap.

---

<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:** [March 26, 2016, 3:55pm UTC](https://discuss.dev.twitch.com/t/hosting-does-not-work-on-embed/4799/6 "2016-03-26T15:55:59Z")

</div>

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