Thanks!!
So im currently situation where im using a website builder called Gator.
They have a feature where I write and input HTML to appear in a box. However, I recently inputted some code and im getting nothing to show up. Does anyone have an idea what I did wrong or a fix.
Here is the code:
script type=âtext/javascriptâ>
new Twitch.Embed(âtwitch-embedâ, {
width: 954,
height: 580,
channel: âomegagamingesportsâ,
parent: [âwww.omegagamingesports.comâ,âcomponents.gator.comâ]
});
</script
You mistyped the fix from the github it should be
<script type="text/javascript">
new Twitch.Embed("twitch-embed", {
width: 954,
height: 580,
channel: "omegagamingesports",
parent: ["www.omegagamingesports.com","components.mywebsitebuilder.com"]
});
</script>
Not working for some reason
The code needs to be exactly
<script type="text/javascript">
new Twitch.Embed("twitch-embed", {
width: 954,
height: 580,
channel: "omegagamingesports",
parent: ["www.omegagamingesports.com","components.mywebsitebuilder.com"]
});
</script>
you currently have
<script type="text/javascript">
new Twitch.Embed("twitch-embed", {
width: 954,
height: 580,
channel: "omegagamingesports",
// only needed if your site is also embedded on embed.example.com and othersite.example.com
parent: ["omegagamingesports.com", "omegagamingesports.com"]
});
</script>
Which is not what Iâve sent you twice!
So did put in that exact code, but I donât understand why it is not working, Literally copied what was typed in the screen shots below. The stream is suppose to appear in between the yellow box.
Either something is missing, or Iâm just a complete idiot who canât do things right.
This doesnât match what you have shown as pasted in the screenshot above. Make sure to hit save regardless of what any preview tool is showing you
So I did save and publish it, but im still getting the same result.
Also, im sorry if my situation is causing a tough issue, was not my intention at all, just wanted to figure this all out so I can resume building my site.
You removed all the other needed code.
You need the div and the script tag for embed/v1.js
Works here
Please ignore the âpreview toolâ
I donât know the iframe nesting tree for the preview tool
Thatâs weird I keep getting a refused to connect mark no matter which browser I use. But it works for you⌠Any advice on that? Also thanks for helping me out means alot.
Iâm assuming you are on
https://omegagamingesports.com/home-page
which is a different page to
https://www.omegagamingesports.com/home-page
change your parent line to
parent: ["omegagamingesports.com","www.omegagamingesports.com","components.mywebsitebuilder.com"]
I think that did the trick :
Thank you so much with bearing with me Barry, truly a hero.
Just a last though, if I embed the stream to a different page, would I just have to change or add the website url to the parent code?
Getting the misconfigured error on our site as well and canât seem to find the correct parent for my iframe link. Page is managed by Wix.
Twitch page is: https://www.twitch.tv/encoreesportsusa
Page is: https://www.encoregaming.us/
The Parents list domains not pages.
The URL to use is
https://player.twitch.tv/?channel=encoreesportsusa&parent=www-encoregaming-us.filesusr.com&parent=www.encoregaming.us
Thanks man, youâre the real MVP
Hi Barry,
Iâve followed the thread, and couldnât find a working solution for my embedded stream.
var options = {
width: '100%',
height: '100%',
channel: "monstercat",
layout: "video-with-chat",
autoplay: true,
parent: ["www.hci-mturk3.usask.ca", "hci-mturk3.usask.ca"]
};
Hereâs the site: https://hci-mturk3.usask.ca:8515/
Please include the port number in the URL to navigate appropriately
Since itâs being hosted as an experiment for a university, there is a consent form, in which you can just click the radio button âI give my consentâ and hit âContinueâ to navigate to the twitch embedâŚ
(Sorry, there is no way around the consent form)
(consent page)
HTTPS on a non standard support is not supported
Is it considered ânon-standard supportâ because of the port it is on?
Would switching it to port 443 resolve this?