var options = { channel: "xluigg", // TODO: Change this to the streams username you want to embed width: 640, height: 360, }; var player = new Twitch.Player("twitch", options); player.addEventListener(Twitch.Player.READY, initiate) function initiate() { player.addEventListener(Twitch.Player.ONLINE, handleOnline); player.addEventListener(Twitch.Player.OFFLINE, handleOffline); player.removeEventListener(Twitch.Player.READY, initiate); } function handleOnline() { document.getElementById("twitch").classList.remove('hide'); player.removeEventListener(Twitch.Player.ONLINE, handleOnline); player.addEventListener(Twitch.Player.OFFLINE, handleOffline); player.setMuted(false); } function handleOffline() { document.getElementById("twitch").classList.add('hide'); player.removeEventListener(Twitch.Player.OFFLINE, handleOffline); player.addEventListener(Twitch.Player.ONLINE, handleOnline); player.setMuted(true); }

©2024 LUI.GG x 41GFX.com

GAMING/ESPORTS GRAPHIC DESIGNS:

SHOWS/PODCAST GRAPHIC DESIGNS:

VIDEO-EDITS:

MORE COMING SOON...

BRANDS I HAVE CREATED OR WORKED WITH:

GET IN CONTACT: