web/marathon-serpentine-2018/config.php
changeset 1450 8066d700510c
parent 1447 64fe57aef309
child 1452 414c7d88133b
--- a/web/marathon-serpentine-2018/config.php	Fri Sep 21 13:58:48 2018 +0200
+++ b/web/marathon-serpentine-2018/config.php	Fri Sep 21 13:59:11 2018 +0200
@@ -1,27 +1,20 @@
 <?php
 
-$youtube_code_list = [
-    // [new DateTime('2018-09-20T12:43:00Z'),new DateTime('2018-09-20T13:10:00Z'), 'eqB0gIALuUs'],
-    [new DateTime('2018-09-22T08:30:00Z'), new DateTime('2018-09-22T12:25:00Z'), 'eqB0gIALuUs'],
-    [new DateTime('2018-09-22T12:25:00Z'), new DateTime('2018-09-22T20:30:00Z'), 'iHygIOIkZ0A'],
-    [new DateTime('2018-09-23T07:30:00Z'), new DateTime('2018-09-23T16:30:00Z'), 'iHygIOIkZ0A'],
+$embed_code_list = [
+    [new DateTime('2018-09-22T08:30:00Z'), new DateTime('2018-09-22T12:25:00Z'), '<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/eqB0gIALuUs?autoplay=1\" frameborder=\"0\" allow=\"autoplay; encrypted-media\" modestbranding=1 allowfullscreen></iframe>'],
+    [new DateTime('2018-09-22T12:25:00Z'), new DateTime('2018-09-22T20:30:00Z'), '<iframe id="ls_embed_1537527835" src="https://livestream.com/accounts/27752410/events/8379051/player?width=560&height=315&enableInfoAndActivity=true&defaultDrawer=&autoPlay=true&mute=false" width="560" height="315" frameborder="0" scrolling="no" allowfullscreen> </iframe>'],
+    [new DateTime('2018-09-23T07:30:00Z'), new DateTime('2018-09-23T16:30:00Z'), '<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/iHygIOIkZ0A?autoplay=1\" frameborder=\"0\" allow=\"autoplay; encrypted-media\" modestbranding=1 allowfullscreen></iframe>'],
 ];
 
-$youtube_code = null;
+$islive_embed = null;
 $current_time = new DateTime();
 
-foreach ($youtube_code_list as $time_entry) {
+foreach ($embed_code_list as $time_entry) {
     if($current_time >= $time_entry[0] &&  $current_time <= $time_entry[1]) {
-        $youtube_code = $time_entry[2];
+        $islive_embed = $time_entry[2];
         break;
     }
 }
-$islive_embed = null;
-if(!is_null($youtube_code)) {
-    $islive_embed = "<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/${youtube_code}?autoplay=1\" frameborder=\"0\" allow=\"autoplay; encrypted-media\" modestbranding=1 allowfullscreen></iframe>";
-}
-
-
 
 $config = array(
     'rep' => basename(__DIR__),