Use the event listeners to check when the player is ready.
player.addEventListener(Twitch.Player.READY, _ => player.play());
Use the event listeners to check when the player is ready.
player.addEventListener(Twitch.Player.READY, _ => player.play());