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 ?

+

For RTMP

+

Use obs or ffmpeg to stream

+

E.g. ffmpeg -re -i filename -c copy -f flv {{ settings.rtmpurl }}?key=KEYGOESHERE

+

obs url field: rtmp://lainchan.org/live/

+

obs key field: stream?key=KEYGOESHERE


@@ -82,7 +97,7 @@ $("#ogvviewers").text( sd[22].textContent );
Tinyboard Copyright © 2010-2014 Tinyboard Development Group
vichan Copyright © 2012-2015 vichan-devel

- + {% endfilter %}