# Cant embed player.twitch.tv on my website

**URL:** <https://discuss.dev.twitch.com/t/cant-embed-player-twitch-tv-on-my-website/3512>\
**Category:** Help / Off-topic\
**Created:** [October 5, 2015, 4:38am UTC](https://discuss.dev.twitch.com/t/cant-embed-player-twitch-tv-on-my-website/3512 "2015-10-05T04:38:51Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![metalj](https://avatars.discourse-cdn.com/v4/letter/m/c68b51/32.png) [@metalj](https://discuss.dev.twitch.com/u/metalj)\
**Post date:** [October 5, 2015, 4:38am UTC](https://discuss.dev.twitch.com/t/cant-embed-player-twitch-tv-on-my-website/3512/1 "2015-10-05T04:38:51Z")

</div>

Hello there. I am the developer of [TwitchTheater.tv](http://TwitchTheater.tv). I would like to use the new twitch player on my website, but it fails to load. I have been using iframes to embed it but all I get is a black screen. I didnt know where else to report this, so I posted it here. Hopefully this can get fixed so that I can release some new features for my website.

regards, Luis.

---

<div class="post-metadata">

**Author:** ![night](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/night/32/1613_2.png) [@night](https://discuss.dev.twitch.com/u/night)\
**Post date:** [October 5, 2015, 7:46pm UTC](https://discuss.dev.twitch.com/t/cant-embed-player-twitch-tv-on-my-website/3512/2 "2015-10-05T19:46:36Z")

</div>

As far as I know Twitch is not officially supporting embedding of the new player just yet. I assume when it’s linked below on-site players through the “Share” button it will be bug free and work properly. They still link the iframe for the old player for now.

---

<div class="post-metadata">

**Author:** ![metalj](https://avatars.discourse-cdn.com/v4/letter/m/c68b51/32.png) [@metalj](https://discuss.dev.twitch.com/u/metalj)\
**Post date:** [October 6, 2015, 12:59am UTC](https://discuss.dev.twitch.com/t/cant-embed-player-twitch-tv-on-my-website/3512/3 "2015-10-06T00:59:50Z")

</div>

Hello. Thank you for your answer. I am planning to add an option to my website that allows people to try out the new player so they can see the progress it makes as it develops, and then when its fully stable, I will officially make the move from flash to HTML5. But for the mean time, it would be really cool to see this get fixed. : )

thank you again, Luis.

---

<div class="post-metadata">

**Author:** ![Future\_Nipples](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/future_nipples/32/826_2.png) [@Future\_Nipples](https://discuss.dev.twitch.com/u/Future_Nipples)\
**Post date:** [October 7, 2015, 1:08pm UTC](https://discuss.dev.twitch.com/t/cant-embed-player-twitch-tv-on-my-website/3512/4 "2015-10-07T13:08:05Z")

</div>

I was told by Twitch staff that they had to make a simple fix. However, it has been several days with no change.

Here’s the reddit thread in question [https://www.reddit.com/r/Twitch/comments/3n4q0s/embedding\_html5\_player\_into\_site/cvktiff](https://www.reddit.com/r/Twitch/comments/3n4q0s/embedding_html5_player_into_site/cvktiff)

Yes, I’m frustrated as well. With the new player rolling out I would expect embedded players to work as expected. Currently it appears they’re using the relative domain for the javascript code needed to populate the embeded html5 player with the required channel information.

If you check the source code on [twitch.tv](http://twitch.tv) they’re actually using iframes as well and the new player works just fine.

All we can do is wait, I suppose.

---

<div class="post-metadata">

**Author:** ![metalj](https://avatars.discourse-cdn.com/v4/letter/m/c68b51/32.png) [@metalj](https://discuss.dev.twitch.com/u/metalj)\
**Post date:** [October 8, 2015, 6:06am UTC](https://discuss.dev.twitch.com/t/cant-embed-player-twitch-tv-on-my-website/3512/5 "2015-10-08T06:06:11Z")

</div>

I just checked it and it seems like they have fixed it!

Btw, thank you for your reply and for linking me to that thread. It has some very useful information.

regards, Luis.

---

<div class="post-metadata">

**Author:** ![Fugiman](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/fugiman/32/108_2.png) [@Fugiman](https://discuss.dev.twitch.com/u/Fugiman)\
**Post date:** [October 9, 2015, 12:14pm UTC](https://discuss.dev.twitch.com/t/cant-embed-player-twitch-tv-on-my-website/3512/6 "2015-10-09T12:14:42Z")

</div>

FYI, the player is only updated once a week. Just because it’s a simple fix doesn’t mean QAing it & deploying it is simple 😉

---

<div class="post-metadata">

**Author:** ![metalj](https://avatars.discourse-cdn.com/v4/letter/m/c68b51/32.png) [@metalj](https://discuss.dev.twitch.com/u/metalj)\
**Post date:** [October 17, 2015, 12:48am UTC](https://discuss.dev.twitch.com/t/cant-embed-player-twitch-tv-on-my-website/3512/7 "2015-10-17T00:48:40Z")

</div>

Embedding is broken again BibleThump  
This time chrome console says “Uncaught TypeError: Cannot read property ‘split’ of undefined” - player.dc9201cd.js.

---

<div class="post-metadata">

**Author:** ![ToxicFire](https://avatars.discourse-cdn.com/v4/letter/t/49beb7/32.png) [@ToxicFire](https://discuss.dev.twitch.com/u/ToxicFire)\
**Post date:** [October 18, 2015, 11:41am UTC](https://discuss.dev.twitch.com/t/cant-embed-player-twitch-tv-on-my-website/3512/8 "2015-10-18T11:41:36Z")

</div>

I know you said chrome console but, which browser are you using just to make sure because I’ve had this issue too and brought it up on reddit with one of the dev’s and it appears to work fine on chrome but on firefox it has this issue.

---

<div class="post-metadata">

**Author:** ![metalj](https://avatars.discourse-cdn.com/v4/letter/m/c68b51/32.png) [@metalj](https://discuss.dev.twitch.com/u/metalj)\
**Post date:** [October 19, 2015, 12:31am UTC](https://discuss.dev.twitch.com/t/cant-embed-player-twitch-tv-on-my-website/3512/9 "2015-10-19T00:31:09Z")

</div>

just plain normal Google Chrome v46. Windows 10.

---

<div class="post-metadata">

**Author:** ![Future\_Nipples](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/future_nipples/32/826_2.png) [@Future\_Nipples](https://discuss.dev.twitch.com/u/Future_Nipples)\
**Post date:** [October 21, 2015, 1:41am UTC](https://discuss.dev.twitch.com/t/cant-embed-player-twitch-tv-on-my-website/3512/11 "2015-10-21T01:41:14Z")

</div>

I understand your release cycle. However, the issue came back after your last release.  
Now it has been two weeks with no change. Please keep us developers updated as to what’s going on.

To quote my last reply below

> Embedding the new HTML5 player still doesn’t work in Chrome of Firefox. Both are giving “e is undefined” errors.  
> However, it’s working in Internet Explorer.  
> The reason for this is that IE throws an exception when a script tries to access cross-domain data in an iFrame. Chrome and Firefox only return an empty object without throwing an exception. Your code in player.js checks for an exception that is never thrown.

---

<div class="post-metadata">

**Author:** ![Fugiman](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/fugiman/32/108_2.png) [@Fugiman](https://discuss.dev.twitch.com/u/Fugiman)\
**Post date:** [October 21, 2015, 2:45am UTC](https://discuss.dev.twitch.com/t/cant-embed-player-twitch-tv-on-my-website/3512/12 "2015-10-21T02:45:37Z")

</div>

It seems to work fine for me. Can you link to a demo of it not working?

---

<div class="post-metadata">

**Author:** ![metalj](https://avatars.discourse-cdn.com/v4/letter/m/c68b51/32.png) [@metalj](https://discuss.dev.twitch.com/u/metalj)\
**Post date:** [October 21, 2015, 4:16am UTC](https://discuss.dev.twitch.com/t/cant-embed-player-twitch-tv-on-my-website/3512/13 "2015-10-21T04:16:02Z")

</div>

heres something easy to work with:

[http://metalj.co.nf/twitch-player-demo/](http://metalj.co.nf/twitch-player-demo/)

if towelliee is not on just change the channel via F12

regards, Luis.

---

<div class="post-metadata">

**Author:** ![Fugiman](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/fugiman/32/108_2.png) [@Fugiman](https://discuss.dev.twitch.com/u/Fugiman)\
**Post date:** [October 21, 2015, 8:20pm UTC](https://discuss.dev.twitch.com/t/cant-embed-player-twitch-tv-on-my-website/3512/14 "2015-10-21T20:20:55Z")

</div>

Yeah, that plays for me in Chrome…

---

<div class="post-metadata">

**Author:** ![metalj](https://avatars.discourse-cdn.com/v4/letter/m/c68b51/32.png) [@metalj](https://discuss.dev.twitch.com/u/metalj)\
**Post date:** [October 21, 2015, 9:15pm UTC](https://discuss.dev.twitch.com/t/cant-embed-player-twitch-tv-on-my-website/3512/15 "2015-10-21T21:15:58Z")

</div>

I guess the team fixed it today. Yesterday it wasn’t working.

regards, Luis.

---

<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 31, 2015, 9:16pm UTC](https://discuss.dev.twitch.com/t/cant-embed-player-twitch-tv-on-my-website/3512/16 "2015-10-31T21:16:11Z")

</div>

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