diff --git a/backend/templates/live.twig b/backend/templates/live.twig index 382d490..f334d59 100644 --- a/backend/templates/live.twig +++ b/backend/templates/live.twig @@ -16,10 +16,18 @@ if (twitchEmbed) { twitchEmbed.pause(); } + if (moistEmbed) { + moistEmbed.pause(); + } + $('#html5video')[0].play(); } else if (currentTab === '#twitch') { $('#html5video')[0].pause(); + if (moistEmbed) { + moistEmbed.pause(); + } + if (twitchEmbed) { twitchEmbed.play(); @@ -31,6 +39,23 @@ autoplay: true }); } + } else if (currentTab === '#moist-dog') { + $('#html5video')[0].pause(); + + if (twitchEmbed) { + twitchEmbed.pause(); + } + + if (moistEmbed) { + moistEmbed.play(); + } else { + moistEmbed = new Twitch.Embed("moist-dog-embed", { + width: "100%", + height: 480, + channel: "moistdogtv", + autoplay: true + }); + } } }); }); @@ -53,7 +78,13 @@ + @@ -70,6 +101,9 @@
+
+
+