# Parent not specified when trying to embedding everything

**URL:** <https://discuss.dev.twitch.com/t/parent-not-specified-when-trying-to-embedding-everything/27988>\
**Category:** API\
**Created:** [September 1, 2020, 1:07am UTC](https://discuss.dev.twitch.com/t/parent-not-specified-when-trying-to-embedding-everything/27988 "2020-09-01T01:07:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HotTahdy](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/hottahdy/32/10126_2.png) [@HotTahdy](https://discuss.dev.twitch.com/u/HotTahdy)\
**Post date:** [September 1, 2020, 1:07am UTC](https://discuss.dev.twitch.com/t/parent-not-specified-when-trying-to-embedding-everything/27988/1 "2020-09-01T01:07:13Z")

</div>

Ok so I am building myself a website and would like to embed the twitch player that includes everything. I am trying to follow the instructions for “Embedding Everything” ([https://dev.twitch.tv/docs/embed/everything](https://dev.twitch.tv/docs/embed/everything)) and I am trying to test locally by just running my html file from the file directory but I keep getting the parent not specified in my chrome console.

I am not sure what I am missing:

```
   <!-- Add a placeholder for the Twitch embed -->
    <div id="twitch-embed"></div>

    <!-- Load the Twitch embed script -->
    <script src="https://embed.twitch.tv/embed/v1.js"></script>

    <!--
      Create a Twitch.Embed object that will render
      within the "twitch-embed" root element.
    -->
    <script type="text/javascript">
      var embed = new Twitch.Embed("twitch-embed", {
        width: 854,
        height: 480,
        channel: "hottahdy",
        layout: "video-with-chat",
        autoplay: true,
        muted: true
      });

      embed.addEventListener(Twitch.Embed.VIDEO_READY, () => {
        var player = embed.getPlayer();
        player.play();
      });
    </script>
```

---

<div class="post-metadata">

**Author:** ![WLG3R](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/wlg3r/32/6985_2.png) [@WLG3R](https://discuss.dev.twitch.com/u/WLG3R)\
**Post date:** [September 1, 2020, 11:23am UTC](https://discuss.dev.twitch.com/t/parent-not-specified-when-trying-to-embedding-everything/27988/2 "2020-09-01T11:23:41Z")

</div>

You can’t run it from the file. It needs to be loaded from a web server. Local host works. But a public website needs SSL also.

---

<div class="post-metadata">

**Author:** ![HotTahdy](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/hottahdy/32/10126_2.png) [@HotTahdy](https://discuss.dev.twitch.com/u/HotTahdy)\
**Post date:** [September 3, 2020, 4:40pm UTC](https://discuss.dev.twitch.com/t/parent-not-specified-when-trying-to-embedding-everything/27988/3 "2020-09-03T16:40:19Z")

</div>

Yep that did it, I just had to turn my pc in a local web server.

Thank you for the help!

---

<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 3, 2020, 4:40pm UTC](https://discuss.dev.twitch.com/t/parent-not-specified-when-trying-to-embedding-everything/27988/4 "2020-10-03T16:40:20Z")

</div>

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