JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://player.twitch.tv/js/embed/v1.js"></script>
<div id="player"></div>

JavaScript

const options = {
		width: 640,
		height: 360,
 		channel: "drlupo",
    autoplay: false
};
const player = new Twitch.Player("player", options);

player.addEventListener(Twitch.Player.READY, function() {
	player.setQuality('160p30');
  player.setMuted(true);
});

player.addEventListener(Twitch.Player.PLAY, function() {
	player.setMuted(false);
});

player.addEventListener(Twitch.Player.PAUSE, function() {
	player.setMuted(true);
});