I want to add some streaming players to my website, but it doesn’t look good on smartphones.
I’m using this to add the player
<h4>DAKOTAZ</h4>
<div id="twitch-embed-dakotaz"></div>
</div>
new Twitch.Embed("twitch-embed-dakotaz", {
width: 570,
height: 320,
channel: "dakotaz",
layout: "video",
autoplay: false
});
embed.addEventListener(Twitch.Embed.VIDEO_READY, () => {
var player = embed.getPlayer();
player.play();
});
</script>