# Embedding/Hosting

**URL:** <https://discuss.dev.twitch.com/t/embedding-hosting/3408>\
**Category:** Help / Off-topic\
**Created:** [September 22, 2015, 3:36am UTC](https://discuss.dev.twitch.com/t/embedding-hosting/3408 "2015-09-22T03:36:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raktus](https://avatars.discourse-cdn.com/v4/letter/r/e47c2d/32.png) [@Raktus](https://discuss.dev.twitch.com/u/Raktus)\
**Post date:** [September 22, 2015, 3:36am UTC](https://discuss.dev.twitch.com/t/embedding-hosting/3408/1 "2015-09-22T03:36:29Z")

</div>

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:** ![Raktus](https://avatars.discourse-cdn.com/v4/letter/r/e47c2d/32.png) [@Raktus](https://discuss.dev.twitch.com/u/Raktus)\
**Post date:** [September 22, 2015, 2:30pm UTC](https://discuss.dev.twitch.com/t/embedding-hosting/3408/2 "2015-09-22T14:30:07Z")

</div>

I was looking at something like this:  
[https://github.com/justintv/Twitch-API/blob/master/player.md](https://github.com/justintv/Twitch-API/blob/master/player.md)

And was wondering if there were a way to make a player that checked if a channel was online, if so it would load it and if not it would check the next channel from a list until it found one online.

---

<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:** [September 24, 2015, 2:53pm UTC](https://discuss.dev.twitch.com/t/embedding-hosting/3408/3 "2015-09-24T14:53:39Z")

</div>

Use [`/streams` endpoint with `?channel` GET parameter](https://github.com/justintv/Twitch-API/blob/master/v3_resources/streams.md#get-streams) in the preferred order and embed the first channel in the returned list, if the list isn’t empty (none of the channels live).

---

<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:** [October 4, 2015, 2:53pm UTC](https://discuss.dev.twitch.com/t/embedding-hosting/3408/4 "2015-10-04T14:53:46Z")

</div>

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