JSFiddle - React, Tailwind, and code Playground
by lchau
HTML
<script src="https://player.twitch.tv/js/embed/v1.js"></script>
<div id='player'></div>
JavaScript
const options = {
width: 320,
height: 240,
channel: 'overwatchleague',
muted: true,
playsinline: true,
autoplay: true,
};
const player = new Twitch.Player('player', options);
setTimeout(() => player.setMuted(false), 2500);