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
Twitch
Twitch
YouTube
YouTube
Instagram
Instagram
Twitter
Twitter
Ko-fi
Ko-fi
PORTFOLIO
WORKED WITH
CONTACT
GAMING/ESPORTS GRAPHIC DESIGNS:
SHOWS/PODCAST GRAPHIC DESIGNS:
VIDEO-EDITS:
MORE COMING SOON...
≡
BRANDS I HAVE CREATED OR WORKED WITH:
≡
Email
Email
GET IN CONTACT:
I accept the above information will be used to contact me.
Check
send
≡
YouTube
YouTube
Twitch
Twitch
Instagram
Instagram
Twitter
Twitter
Ko-fi
Ko-fi
©2024 LUI.GG x 41GFX.com