Looking at your embeds, you’re using localhost
as the parent, such as https://player.twitch.tv/?video=v867132638&parent=localhost
You need to change localhost to www.micherode.se
Looking at your embeds, you’re using localhost
as the parent, such as https://player.twitch.tv/?video=v867132638&parent=localhost
You need to change localhost to www.micherode.se
really weird this, I change the code in cpanel but not affect changes. I also try clear my whole browser history.
The code is changes as you mention but doesnt changes when i go to site, still localhost showing.
that was just a test domain, www.vods.tv is the real one.
www.vods.tv
No need to specifically reply to me/post twice I see the replies to the thread as I’m the OP
I implemented this code and i get an error message still…
<html>
<body>
<!-- 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: 400,
height: 300,
channel: "exitwestsf",
layout: "video",
autoplay: false,
parent:[ "www-exitwestsf-com.filesusr.com", "www.exitwestsf.com"]
});
</script>
</body>
</html>
</body>
</html>
Can you link to the page with the broken embed, there is no broken embed on https://www.exitwestsf.com/
Yes!! It’s up. I used code you previously recommended. Can you please post the full code that could work, thanks again’
James
Yes Ok, thank You. Much appreciated,
James
One last question? I’m also trying to embed chat on https://www.exitwestsf.com/events
The element is set up but not working,
James
The stream embed works fine, the chat doesn’t because the src is missing parent=
after the &
It should be https://www.twitch.tv/embed/hebo/chat?parent=www.exitwestsf.com&parent=www-exitwestsf-com.filesusr.com
Thank You @Dist…
I have a couple of more questions, I can’t seem to use the percentage for height and width. Am I missing something? Also the theme will not change to light, again I’m assuming user error…
James
var embed = new Twitch.Embed("twitch-embed", { width: 800, height: 500, channel: "exitwestsf", allowfullscreen: true, layout: "video", autoplay: true, theme: "light", parent:[ "www-exitwestsf-com.filesusr.com", "www.exitwestsf.com"] });Currently you are using two iFrames rather than embed everyone in one iframe
Chat URL would be, you are currently using a “dumb” iframe here, which doesn’t support a theme with a documented flag
https://www.twitch.tv/embed/hebo/chat?parent=www.exitwestsf.com&parent=www-exitwestsf-com.filesusr.com
And your init script would be, (it doesn’t/can’t have a “theme” that only applies to chat)
var embed = new Twitch.Embed("twitch-embed", {
width: '100%',
height: '100%',
channel: "exitwestsf",
allowfullscreen: true,
layout: "video",
autoplay: true,
theme: "light",
parent:[ "www-exitwestsf-com.filesusr.com", "www.exitwestsf.com"]
});
Since you have autoplay you don’t need the video ready/start playing
Everything looks and works great now, thanks for all of your help and insights, have a great day,
James
I been struggling trying to get this embedded to work on my website https://www.phrydey.com/
There is no Embed on the page you have linked to.
I cannot advise a fix. Please see the original post on this thread for suggestions
I try using the suggestion but it still not showing up. I must be doing something wrong. I need a little assistance. https://www.phrydey.com/
You parent list is wrong you should be using
new Twitch.Embed("twitch-embed", {
width: 854,
height: 480,
channel:"phrydey",
// only needed if your site is also embedded on embed.example.com and othersite.example.com
parent: ["www.phrydey.com", "www-phrydey-com.filesusr.com"]
});
Hi Barry,
I’ve just thrown together a quick website using Wix and linked it to my own domain. I’ve tried to embed my Twitch stream into a page but I’m getting this error:
I’ve looked through the previous help you’ve provided to see if I can fathom out where I’ve been going wrong but I haven’t been able to get there on my own. Would you be able to provide some assistance?
The embed is found on www.wartopsy.co.uk/stream