From 63228cf236623e2207e5732b0e9c2a34a6fd6e56 Mon Sep 17 00:00:00 2001
From: Benjamin Southall
Date: Fri, 3 Mar 2017 15:48:53 +0900
Subject: [PATCH] Update stream theme, link to newer video.js, add defined
checks for stream now playing feeds and add meta viewport for CSS on mobile
devices
---
templates/themes/stream/stream.html | 25 ++++++++++++++++++++-----
1 file changed, 20 insertions(+), 5 deletions(-)
diff --git a/templates/themes/stream/stream.html b/templates/themes/stream/stream.html
index dc2ed26d..eb7b0c2b 100644
--- a/templates/themes/stream/stream.html
+++ b/templates/themes/stream/stream.html
@@ -3,8 +3,9 @@
-
+
+
{{ settings.title }}
{% if config.meta_keywords %}{% endif %}
@@ -32,10 +33,16 @@ function check_status(){
var el = $( '' );
el.html(data);
var sd = el.find(".streamdata");
-
-$("#ogvnowplaying").text( sd[25].textContent);
-$("#ogvviewers").text( sd[22].textContent );
+if (typeof sd !== 'undefined') {
+ if (typeof sd[25] !== 'undefined') {
+ $("#ogvnowplaying").text( sd[25].textContent);
+ }
+
+ if (typeof sd[22] !== 'undefined') {
+ $("#ogvviewers").text( sd[22].textContent );
+ }
+}
});
}
@@ -70,6 +77,14 @@ $("#ogvviewers").text( sd[22].textContent );
Raw stream URLs for Mplayer, mpv, VLC, etc:
RTMP : {{ settings.rtmpurl }}
OGV : {{ settings.ogvurl }}
+
+
I want to stream. How do I stream ?
+
Get the stream key. (Ask on IRC #lainstream on lainchan IRC). Be prepared to answer questions on, what stream you want RTMP, OGV, what you are streaming, why you are streaming it and when you are streaming it ?