embed youtube livestream chat

pull/3192/head
Thibault Duplessis 2017-06-25 14:25:37 +02:00
parent 5d4ff82dbd
commit 25cfb99477
2 changed files with 21 additions and 11 deletions

View File

@ -19,6 +19,11 @@
height="418"></iframe>
}
case lila.tv.StreamerList.Youtube => {
<iframe
frameborder="0"
scrolling="no"
src="https://www.youtube.com/live_chat?v=@s.streamId&embed_domain=@netDomain"
height="418"></iframe>
}
}
}

View File

@ -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 {