# Can someone fix this up? To embed hosted stream

**URL:** <https://discuss.dev.twitch.com/t/can-someone-fix-this-up-to-embed-hosted-stream/27393>\
**Category:** API\
**Created:** [July 29, 2020, 5:36am UTC](https://discuss.dev.twitch.com/t/can-someone-fix-this-up-to-embed-hosted-stream/27393 "2020-07-29T05:36:20Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![bynum5566](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/bynum5566/32/9801_2.png) [@bynum5566](https://discuss.dev.twitch.com/u/bynum5566)\
**Post date:** [July 29, 2020, 5:36am UTC](https://discuss.dev.twitch.com/t/can-someone-fix-this-up-to-embed-hosted-stream/27393/1 "2020-07-29T05:36:20Z")

</div>

I wonder why is it so difficult for Twitch to solve this since 2016. 😇

Why a Twitch user still can’t embed his/her Twitch streams to website, including hosted streams? Aren’t hosted streams a part of his/her show? Obviously, hosting a stream should be treated as Offline.

Offline =/= Hosting Stream.

It’s that simple!

What’s the difficulty that makes Twitch can’t fix the API to support this?

It has been **four years** since this issue is discovered by a Reddit user but Twitch chose to ignore it.

**May I know why and how to fix it?** 🙂

---

<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:** [July 29, 2020, 11:17am UTC](https://discuss.dev.twitch.com/t/can-someone-fix-this-up-to-embed-hosted-stream/27393/2 "2020-07-29T11:17:36Z")

</div>

Feature suggestions should be posted to the Twitch UserVoice

[https://twitch.uservoice.com/](https://twitch.uservoice.com/)

---

<div class="post-metadata">

**Author:** ![bynum5566](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/bynum5566/32/9801_2.png) [@bynum5566](https://discuss.dev.twitch.com/u/bynum5566)\
**Post date:** [July 29, 2020, 2:12pm UTC](https://discuss.dev.twitch.com/t/can-someone-fix-this-up-to-embed-hosted-stream/27393/3 "2020-07-29T14:12:17Z")

</div>

Thanks for getting back to me, pal. 🤗

Well, you’re probably right, but one of Twitch staff has already responded to the Reddit post mentioned, so I guess the feature suggestion is already **known** and got **ignored** for some reason.

Therefore, what I’m trying to do is not only suggest but also wanna know the cause and the solution if any. That’s why I said “_know why and how to fix_”.

If it’s not clear, please let me know.

If any solution, please feel free to share. 🤩

---

<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:** [July 29, 2020, 2:14pm UTC](https://discuss.dev.twitch.com/t/can-someone-fix-this-up-to-embed-hosted-stream/27393/4 "2020-07-29T14:14:17Z")

</div>

> [@bynum5566](#):
>
> Well, you’re probably right, but one of Twitch staff has already responded to the Reddit post mentioned, so I guess the feature suggestion is already **known** and got **ignored** for some reason.

If it’s not on uservoice theres no “paperwork” for it. Since reddit is just reddit. You don’t know if that staff member that replied, is still staff or if they even entered it into their “feature tracker/ideas board/whatever”

> [@bynum5566](#):
>
> That’s why I said “ _know why and how to fix_ ”.

There is no “fix” because it’s not “broken”.

The embed will embed a channel as described by the channel you tell it to display.

if you want it to be “host aware” you have to write your own code to detect the host and change the displayed channel in your embed.

At time of writing the embed does have a “show another channel if in target channel is hosting” flag.

---

<div class="post-metadata">

**Author:** ![bynum5566](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/bynum5566/32/9801_2.png) [@bynum5566](https://discuss.dev.twitch.com/u/bynum5566)\
**Post date:** [July 30, 2020, 6:33am UTC](https://discuss.dev.twitch.com/t/can-someone-fix-this-up-to-embed-hosted-stream/27393/5 "2020-07-30T06:33:37Z")

</div>

> [@BarryCarlyon](#):
>
> If it’s not on uservoice theres no “paperwork” for it. Since reddit is just reddit. You don’t know if that staff member that replied, is still staff or if they even entered it into their “feature tracker/ideas board/whatever”

Does that matter?

It’s too simple that I don’t believe you can’t understand it:

1. At the moment, the staff can be confirmed as one of Twitch corp.
2. The issue is still **persisting** now

So, **why** and what’s the **solution**?

> [@BarryCarlyon](#):
>
> There is no “fix” because it’s not “broken”.  
> The embed will embed a channel as described by the channel you tell it to display.

Yes, it’s broken, admit that. The function isn’t complete.  
Hosting is part of a channel.  
A user go to A channel and see B channel is hosted on it, he will aware that “Oh, A might not update new content now but he will still provide something by hosting B’s channel”.  
Hence, it’s clear that hosting is a part of the original channel and **the embed doesn’t do its work to transfer all contents provided by A channel**.

> [@BarryCarlyon](#):
>
> At time of writing the embed does have a “show another channel if in target channel is hosting” flag.

How? Don’t have any clue by searching “host” in API v5 documents.  
Can you share a straight answer or example? I believe this issue has been talked around for years. If you can give some useful example code, it will reduce numbers of users talking about this defect.

---

<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:** [July 30, 2020, 11:26am UTC](https://discuss.dev.twitch.com/t/can-someone-fix-this-up-to-embed-hosted-stream/27393/6 "2020-07-30T11:26:48Z")

</div>

> [@bynum5566](#):
>
> Does that matter?
> 
> It’s too simple that I don’t believe you can’t understand it:

Yes which is why I mentioned the uservoice.

Users can post suggestions and other users can upvote those suggestions.

> [@bynum5566](#):
>
> Yes, it’s broken, admit that. The function isn’t complete.

We’ll agree to disagree there then. I don’t believe it broken, a missing feature is not a bug, therefore it’s not broken, it’s just missing functionality.

Personally, I do not expect an embed to show a channel that the channel is hosting.

If that was added I’d expect it to be a option to allow the embed to show the host as a enable/disable flag, so users implementing embed can choose if they want hosts or not to show. Since for the majority of uses I use embeds for, I wouldn’t want a host to show, and most of the things I do embed, pretty much never host anyone anyway.

> [@bynum5566](#):
>
> How? Don’t have any clue by searching “host” in API v5 documents.  
> Can you share a straight answer or example?

`HOSTTARGET`, is sent to chat/IRC and that’s where I would consume outbound hosting information/status from myself

> **[Twitch IRC Commands](https://dev.twitch.tv/docs/irc/commands/#hosttarget-twitch-commands)**
>
> Twitch-specific IRC Commands

There is an existing uservoice for it here, from Monday in fact

> **[How to embed host channel to site](https://twitch.uservoice.com/forums/310213-developers/suggestions/40766968-how-to-embed-host-channel-to-site)**
>
> Is there a way to embed a host channel to my website? When I do the offline shows but when I go to the channel in twitch it shows the hosting no problem.

A suggestion on a different way to handle it is here:

> [@Hosting does not work on embed?](https://discuss.dev.twitch.com/t/hosting-does-not-work-on-embed/4799/4):
>
> 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.

An undocumented endpoint for host tracking is noted here: (undocumented endpoints can break or change at any time)

> [@Embed stream with hosting showing as well](https://discuss.dev.twitch.com/t/embed-stream-with-hosting-showing-as-well/12313/2):
>
> If you want to use an API to check if a channel is hosting another channel, you could use this unsupported, undocumented API endpoint: [https://tmi.twitch.tv/hosts?include\_logins=1&host=](https://tmi.twitch.tv/hosts?include_logins=1&host=):host\_id Where :host\_id is the ID, not the login, of a channel. The target key is the inverse of host and will list channels that is hosting the target ID. You could also use IRC to automatically trigger the change over to the host. The Javascript library [tmi.js](https://tmijs.org/) can be used here. [Hosting](https://docs.tmijs.org/v1.2.1/Events.html#hosting) event, [unhost](https://docs.tmijs.org/v1.2.1/Events.html#unhost). Here …

Finally:

> [@bynum5566](#):
>
> Yes, it’s broken, admit that

For clarity, I’m not Twitch staff.

Just another community developer.

As a community developer, I can’t agree that it’s broken, because to me it’s a missing feature that some people might find useful.

And if I did find it useful, I’d post the suggestion to include this functionality to the Uservoice, where feature requests go.

I wouldn’t post it to the forums or bug tracker, as forums will just send you to the uservoice and the bug tracker will close it as not a bug but a feature request, and send you to the uservoice.

---

<div class="post-metadata">

**Author:** ![3ventic](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/3ventic/32/298_2.png) [@3ventic](https://discuss.dev.twitch.com/u/3ventic)\
**Post date:** [July 30, 2020, 12:16pm UTC](https://discuss.dev.twitch.com/t/can-someone-fix-this-up-to-embed-hosted-stream/27393/7 "2020-07-30T12:16:22Z")

</div>

Please keep in mind Twitch is a large company employing thousands of people in different functions working on different parts of the service, supporting functionality, and subsidiaries. Using the right channels helps the message reach the right people.

---

<div class="post-metadata">

**Author:** ![bynum5566](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/bynum5566/32/9801_2.png) [@bynum5566](https://discuss.dev.twitch.com/u/bynum5566)\
**Post date:** [August 3, 2020, 6:03am UTC](https://discuss.dev.twitch.com/t/can-someone-fix-this-up-to-embed-hosted-stream/27393/8 "2020-08-03T06:03:23Z")

</div>

It’s definitely a issue and what I’m looking for is solution, reason, and remind Twitch to move forward and complete the embed function. Therefore, if someone knows the solution or reason, they’ll share it here. In the same time, Twitch should check what we’ve talked and complete the function. That’s why it’s posted here.

If it’s still hard for you to understand, it’s fine and no one cares what will you put this to, user voice or forum.

BTW, I’ve also serached and checked other articles before so what you posted is already checked. Actually, in the similar articles, I’ve noticed that you’re not helping here. Instead, you’re keeping telling it’s not supported. That’s all. matt\_thomas does much better than you as he provided some solutions. On the other hand, what you have contributed is “0”.

I’m not forcing you to solve it as you’ve said that you’re not a staff. Just let you know that you’re not make any one to move any step.

---

<div class="post-metadata">

**Author:** ![bynum5566](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/bynum5566/32/9801_2.png) [@bynum5566](https://discuss.dev.twitch.com/u/bynum5566)\
**Post date:** [August 3, 2020, 6:07am UTC](https://discuss.dev.twitch.com/t/can-someone-fix-this-up-to-embed-hosted-stream/27393/9 "2020-08-03T06:07:26Z")

</div>

Finally, someone in Twitch can face to the truth.

Thank you for responding and just a suggestion, please check this incomplete and buggy embed function as this issue has **been suspended for 4 years**.

Hope you understand.

---

<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:** [August 3, 2020, 11:24am UTC](https://discuss.dev.twitch.com/t/can-someone-fix-this-up-to-embed-hosted-stream/27393/10 "2020-08-03T11:24:31Z")

</div>

> [@bynum5566](#):
>
> It’s definitely a issue and what I’m looking for is solution, reason, and remind Twitch to move forward and complete the embed function. Therefore, if someone knows the solution or reason, they’ll share it here. In the same time, Twitch should check what we’ve talked and complete the function. That’s why it’s posted here.

Then please post it to the uservoice as a suggestion, as 3ventic suggested, things need to be on the right channels, this forum is not the right channel for raising this feature request.

> [@bynum5566](#):
>
> BTW, I’ve also serached and checked other articles before so what you posted is already checked. Actually, in the similar articles, I’ve noticed that you’re not helping here. Instead, you’re keeping telling it’s not supported. That’s all. matt\_thomas does much better than you as he provided some solutions. On the other hand, what you have contributed is “0”.

I covered some possible solutions in my reply on this thread, I covered how I’d do it and linked to other peoples replies on similar solutions

> [@BarryCarlyon](#):
>
> `HOSTTARGET` , is sent to chat/IRC and that’s where I would consume outbound hosting information/status from myself

Starting here, and I even linked to Matt’s existing suggestion on a method using a “known” list of streamers, and links to Alca’s solution on reading hosting information.

I have attempted to route you to the best locations for the problem you are having. And even found an existing uservoice for it

> [@BarryCarlyon](#):
>
> There is an existing uservoice for it here, from Monday in fact
> 
> [How to embed host channel to site – Twitch UserVoice](https://twitch.uservoice.com/forums/310213-developers/suggestions/40766968-how-to-embed-host-channel-to-site)

Not sure what else you want from me other that to actually go an code you a solution for you.

The difficultly is that without merging together a bunch of different stuff, and/or undocumented endpoints you have some fun doing what you are trying to do. Personally, as I already covered I’d be using a channel bot to detect host status and store stream status+host status on my website and then let my code/website decide which stream to show. But I have no use for this as none of the people I work for need it, they only want to embed their own streams, and very rarely do any hosting at all. And when they do, they don’t want that host to appear where they are embedding.

So this comes back to what I wrote here

> [@BarryCarlyon](#):
>
> If that was added I’d expect it to be a option to allow the embed to show the host as a enable/disable flag, so users implementing embed can choose if they want hosts or not to show. Since for the majority of uses I use embeds for, I wouldn’t want a host to show, and most of the things I do embed, pretty much never host anyone anyway.

It shouldn’t be the default behavior, if it was added to the embed system.

Worth noting that if you popout a stream it won’t show the host either (last I checked), so popout’s and embeds have the same model of operation. Is that bugged too or intended?

---

<div class="post-metadata">

**Author:** ![jbulava](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/jbulava/32/6777_2.png) [@jbulava](https://discuss.dev.twitch.com/u/jbulava)\
**Post date:** [August 6, 2020, 3:17pm UTC](https://discuss.dev.twitch.com/t/can-someone-fix-this-up-to-embed-hosted-stream/27393/11 "2020-08-06T15:17:40Z")

</div>

To follow up on this thread as well, I wanted to confirm that a hosted channel not showing in a Twitch embed is not a bug. However, it is functionality for the team to consider adding at some point in the future. I will add a UserVoice entry on your behalf for this request and link it here, then you can upvote and subscribe to be notified when the team has made a decision on whether or not this is functionality they would like to provide in the Twitch embed experience. I had incidentally closed out the one Barry referenced above as it was asking how to do it, not if it could be a new feature. Please feel free to add more comments on the entry below.

> **[Display hosted channels parameter option](https://twitch.uservoice.com/forums/310213-developers/suggestions/41089321-display-hosted-channels-parameter-option)**
>
> Consider a parameter option to display hosted channels if the embedded channel is not live. The parameter option is being suggested so that a broadcaster/developer can choose if they do or do not want hosted channels to display when the experience is...

---

<div class="post-metadata">

**Author:** ![jbulava](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/jbulava/32/6777_2.png) [@jbulava](https://discuss.dev.twitch.com/u/jbulava)\
**Post date:** [August 6, 2020, 3:19pm UTC](https://discuss.dev.twitch.com/t/can-someone-fix-this-up-to-embed-hosted-stream/27393/12 "2020-08-06T15:19:20Z")

</div>


