Hey guys,
Last daft question I promise …
OK so trying to make this as responsive as possible I want to break up the player and the chat
Don’t really want to use iframes as Google red flags these on page and for what I want to do with this project I can’t have that …
So my question is this …
I have a div with ID twitch-embed and I’m only showing the video ( without chat ) in this
and this works OK
However I now want to create a second instance only for the chat
I have tried the below but it doesn’t work as it loads the video as well on top
window.onload = function(){
new Twitch.Embed("twitch-embed", {
width: "100%",
height: "450px",
theme: "dark",
channel: "<?php echo $username;?>",
layout: "video"
});
new Twitch.Embed("twitch-chat", {
width: "100%",
height: "100%",
theme: "dark",
channel: "<?php echo $username;?>",
layout: "chat"
});
}
Really don’t want to use an iframe if I can help it so any advice would be great
