From 25cfb9947740e96229582a130f4fe8851a109036 Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Sun, 25 Jun 2017 14:25:37 +0200 Subject: [PATCH] embed youtube livestream chat --- app/views/tv/stream.scala.html | 5 +++++ modules/tv/src/main/Streaming.scala | 27 ++++++++++++++++----------- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/app/views/tv/stream.scala.html b/app/views/tv/stream.scala.html index f3fafe4037..f8a885b92f 100644 --- a/app/views/tv/stream.scala.html +++ b/app/views/tv/stream.scala.html @@ -19,6 +19,11 @@ height="418"> } case lila.tv.StreamerList.Youtube => { + } } } diff --git a/modules/tv/src/main/Streaming.scala b/modules/tv/src/main/Streaming.scala index fb03e3f734..027fdecaf6 100644 --- a/modules/tv/src/main/Streaming.scala +++ b/modules/tv/src/main/Streaming.scala @@ -25,14 +25,16 @@ private final class Streaming( // fuccess(List(StreamOnAir( // name = "Chess master streams at lichess.org", // streamer = StreamerList.Streamer( - // service = StreamerList.Twitch, - // streamerName = "en_guy", - // streamerNameForDisplay = "en guy".some, - // lichessName = "en_guy", + // service = StreamerList.Youtube, + // streamerName = "UCVeETS7uZTAARqvv2zssZCw", + // lichessName = "test", + // streamerNameForDisplay = "test".some, // featured = true, - // chat = true), + // chat = true + // ), // url = "http://foo.com", - // streamId = "test_en"), StreamOnAir( + // streamId = "UCVeETS7uZTAARqvv2zssZCw" + // ), StreamOnAir( // name = "[fr] some french stream", // streamer = StreamerList.Streamer( // service = StreamerList.Twitch, @@ -40,9 +42,11 @@ private final class Streaming( // streamerNameForDisplay = "fr guy".some, // lichessName = "fr_guy", // featured = true, - // chat = true), + // chat = true + // ), // url = "http://foo.com", - // streamId = "test_fr"), StreamOnAir( + // streamId = "test_fr" + // ), StreamOnAir( // name = "[ES] some spanish stream", // streamer = StreamerList.Streamer( // service = StreamerList.Twitch, @@ -50,10 +54,11 @@ private final class Streaming( // streamerNameForDisplay = "es guy".some, // lichessName = "es_guy", // featured = true, - // chat = true), + // chat = true + // ), // url = "http://foo.com", - // streamId = "test_es") - // )) + // streamId = "test_es" + // ))) } private[tv] val actor = system.actorOf(Props(new Actor {