The great big "I'm using WIX/SomeWebsiteMaking Tool and I don't know how to fix my embed" thread

Could be a problem with the site builder you are using.

I was afraid it is :expressionless:

Thank you very much for your effort @BarryCarlyon

Try this

<div id="test"></div>

<script src= "https://embed.twitch.tv/embed/v1.js"></script>
<script type="text/javascript">
  var parent = ['beatzbybata.com', 'www.beatzbybata.com', window.location.host];

  var options = {
    width: 800,
    height: 500,
    channel: "monstercat",
    allowfullscreen: false,
    layout: "video-with-chat",
    muted: true,
    parent
  };
  var player = new Twitch.Embed("test", options);
</script>

Forgot something :smiley:

1 Like

Wooooow, you are a genius :star_struck:

It finally worked!!!

Thank you very much man!!! @BarryCarlyon :100: :boom:

Here’s the website I’m trying to embed to: https://puckkcmo.wixsite.com/website

Here’s the code I’m trying:
src=https://player.twitch.tv/?channel=puckkcmo&parent=puckkcmo.wixsite.com/website&parent=puckkcmo-wixsite-com/website.fileusr.com "frameborder=ā€œ0ā€ allow=ā€œaccelerometer; autoplay; encrypted-media; gyroscope; picture-in-pictureā€ allowfullscreen>

And I’m getting an ā€œembed misconfiguredā€ message. I have NO experience with coding, so any help would be greatly appreciated.

I cannot fix an embed I can’t see. There is not broken embed on the linked page I cannot advise the required fix

My apologies, I was very tired and neglected to hit Publish. You should be able to see it now. Thank you!

https://puckkcmo.wixsite.com/website

the current URL to fix for this site is

https://player.twitch.tv/?channel=puckkcmo&parent=puckkcmo.wixsite.com&parent=6bc9fafa-7b28-4e9f-99dd-5f1a615cb58d.htmlcomponentservice.com

Hello!

@BarryCarlyon, I’ve spent the last few hours combing through each of these iFrames you’ve been helping everyone with, but for the life of me I can’t fix this. I’ve followed each one piece by piece and I’m still missing stuff.

URL: https://wedowix.wixsite.com/my-site-3

Heres what I have:
<iframe src="https://player.twitch.tv/?channel=vantaleagues&parent=wedowix.wixsite.com&parent=www.wedowix.wixsite.com&parent=www-wedowix-wixsite-com.filesusr.com" frameborder="0" allowfullscreen="true" scrolling="no" height="378" width="620"></iframe>

I’ve tried it with the different ā€œparentsā€ in a different order and a bunch of variations to no avail. I’ve seen many others in here past whatever it is you give them and it works! I copy what you give and adjust for my domain but no success.

Your help would be greatly appreciated!

Thanks.

Try this as the URL for your iFrame

https://player.twitch.tv/?channel=vantaleagues&parent=wedowix-wixsite-com.filesusr.com&parent=wedowix.wixsite.com

1 Like

That worked. I have no idea why since I tried everything but thanks for your help! Saved me a lot more stress haha.

I copied and pasted and now am getting a ā€œplayer.twitch.tv is blockedā€ message.

Looks ok here

Refused to frame ā€˜https://player.twitch.tv/’ because an ancestor violates the following Content Security Policy directive: ā€œframe-ancestors https://prateek12.pythonanywhere.com https://www.prateek12.pythonanywhere.comā€.

<iframe src="https://player.twitch.tv/?channel=lol_nemesis&parent=prateek12.pythonanywhere.com" frameborder="0" allowfullscreen="true" scrolling="no" height="450" width="800"></iframe>
<iframe
  id="chat_embed"
  src="https://www.twitch.tv/embed/lol_nemesis/chat?parent=prateek12.pythonanywhere.com"
  height="450"
  width="314">
</iframe>

@prateekjajoo Please provide a link to the page that is broken so someone can investigate.

Initially it seems that https://www.prateek12.pythonanywhere.com due to a SSL Error
And https://prateek12.pythonanywhere.com/ presents an admin dashboard?

Hello @BarryCarlyon
Please check this http://prateek12.pythonanywhere.com/twitch_video url

SSL is required.

This page works fine as https://prateek12.pythonanywhere.com/twitch_video

Thank You so much buddy @BarryCarlyon

Hey guys,

I am trying to put my Twitch stream on my website but its giving me an error.

Photo attached below:

```

Information was copied from my channel page

I am trying to add it to: http://www.anthonybuada.com/live.html

Any help would be greatly appreciated. Thank you!

Best,
Anthony

There’s a couple issues, first the parent param is wrong on the iframe.
https://player.twitch.tv/?channel=anthooony&parent=www.anthonybuada.com/live.html
should be
https://player.twitch.tv/?channel=anthooony&parent=www.anthonybuada.com

Secondly, all pages that use an embed MUST be using https, where as your site is using an invalid certificate and redirecting from https to a normal http page, which will not support embeds.