updated LA video js so it works on various alternate urls
authorAndrew Engelbrecht <andrew@fsf.org>
Fri, 19 Mar 2021 22:55:53 +0000 (18:55 -0400)
committerAndrew Engelbrecht <andrew@fsf.org>
Fri, 19 Mar 2021 22:56:27 +0000 (18:56 -0400)
2021/live/jupiter/index.html

index 00c03404da56497e85e164a02e9aac6ddb0d7775..10066b9975ac308846d5f5d2b44ab7d97cecc6ae 100755 (executable)
@@ -22,9 +22,9 @@
 
 <script>
 // embed video url based on page name, and add a ?t=foo datestamp to work around caching issues
-matchResult = window.location.pathname.match(RegExp("\/2021\/live/(jupiter|saturn|neptune)/?"));
+matchResult = window.location.pathname.match(RegExp("\/2021\/(registered/|libreadventure-iframe/|)live/(jupiter|saturn|neptune)/?"));
 if (matchResult !== null) {
-    document.getElementById("speaker-video").src = "https://live.fsf.org/stream-room-" + matchResult[1] + ".webm?t=" + (new Date() * 1);
+    document.getElementById("speaker-video").src = "https://live.fsf.org/stream-room-" + matchResult[2] + ".webm?t=" + (new Date() * 1);
 }
 </script>