# Embed embeding wrong channel

**URL:** <https://discuss.dev.twitch.com/t/embed-embeding-wrong-channel/17377>\
**Category:** API\
**Created:** [August 27, 2018, 10:40pm UTC](https://discuss.dev.twitch.com/t/embed-embeding-wrong-channel/17377 "2018-08-27T22:40:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![A2020](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@A2020](https://discuss.dev.twitch.com/u/A2020)\
**Post date:** [August 27, 2018, 10:40pm UTC](https://discuss.dev.twitch.com/t/embed-embeding-wrong-channel/17377/1 "2018-08-27T22:40:30Z")

</div>

So today for some reason the embed method I was using was embeding the wrong channel.

I have on an HTML page the following code.

```
<div id="video-container">
          <script src= "http://player.twitch.tv/js/embed/v1.js"></script>
          <div id="player"></div>
          <script type="text/javascript">
            var options = {
              width: "100%",
              height: "100%",
              channel: "archonthewizard",
              autoplay: false,
              theme: "dark"
            };
            var player = new Twitch.Player("player", options);
          </script>
        </div>

```

For some reason it was not embeding the correct channel, but the channel [https://www.twitch.tv/hungecotto](https://www.twitch.tv/hungecotto)

What could the problem be?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Syzuna](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/syzuna/32/3750_2.png) [@Syzuna](https://discuss.dev.twitch.com/u/Syzuna)\
**Post date:** [August 28, 2018, 1:15pm UTC](https://discuss.dev.twitch.com/t/embed-embeding-wrong-channel/17377/2 "2018-08-28T13:15:45Z")

</div>

Hey,

apparently this is a known bug that is awaiting a fix.  
For now using https instead of http, should work as a temp fix iirc.  
(no guarantee tho)

Regards

Syzuna

---

<div class="post-metadata">

**Author:** ![A2020](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@A2020](https://discuss.dev.twitch.com/u/A2020)\
**Post date:** [August 28, 2018, 10:13pm UTC](https://discuss.dev.twitch.com/t/embed-embeding-wrong-channel/17377/3 "2018-08-28T22:13:16Z")

</div>

Thanks. Yes as you mention using https is doing the trick.

Weird bug, hope it gets fixed soon.

---

<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:** [September 27, 2018, 10:13pm UTC](https://discuss.dev.twitch.com/t/embed-embeding-wrong-channel/17377/4 "2018-09-27T22:13:21Z")

</div>

Closed on September 27, 2018, 10:13pm UTC

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