From fa01d816b3b2d9dfb4f6b37435d1a6fd3cbf76f7 Mon Sep 17 00:00:00 2001 From: Benjamin Southall Date: Sat, 8 Oct 2016 15:29:06 +0900 Subject: Add stream theme / extension to Lainchan --- templates/themes/stream/stream.html | 84 +++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 templates/themes/stream/stream.html (limited to 'templates/themes/stream/stream.html') diff --git a/templates/themes/stream/stream.html b/templates/themes/stream/stream.html new file mode 100644 index 00000000..cf952366 --- /dev/null +++ b/templates/themes/stream/stream.html @@ -0,0 +1,84 @@ +{% filter remove_whitespace %} + + + + + + + {{ settings.title }} + {% if config.meta_keywords %}{% endif %} + + {% if config.url_favicon %}{% endif %} + + + {% if config.font_awesome %}{% endif %} + + + + + +
+ {{ boardlist.top }} +
+
+

{{ settings.title }}

+
{{ settings.subtitle }}
+
+ +
+ + +
+

Now Streaming RTMP unknown

+

Now Streaming OGV unknown

+

Current RTMP viewers: unknown

+

Current OGV viewers: unknown

+
+

Raw stream URLs for Mplayer, mpv, VLC, etc:

+

RTMP : {{ setings.rtmpurl }}

+

OGV : {{ setings.ogvurl }}

+

+
+ + + +
+ + + + +{% endfilter %} -- cgit v1.3 From 1c7c6458316daaed5b233e1c125a7aa2f853425e Mon Sep 17 00:00:00 2001 From: Benjamin Southall Date: Sat, 10 Dec 2016 18:18:27 +0900 Subject: Adding separate videojs RTMP URL configuration variable to stream theme --- templates/themes/stream/info.php | 16 +++++++++++----- templates/themes/stream/stream.html | 18 +++++++++++------- 2 files changed, 22 insertions(+), 12 deletions(-) (limited to 'templates/themes/stream/stream.html') diff --git a/templates/themes/stream/info.php b/templates/themes/stream/info.php index 169cbe46..081b29ca 100644 --- a/templates/themes/stream/info.php +++ b/templates/themes/stream/info.php @@ -34,33 +34,39 @@ 'title' => 'OGV stream URL', 'name' => 'ogvurl', 'type' => 'text', - 'default' => 'https://lainchan.org/radio_assets/lainstream.ogg') + 'default' => 'https://lainchan.org/radio_assets/lainstream.ogg' ); $theme['config'][] = Array( 'title' => 'RTMP stream URL', 'name' => 'rtmpurl', 'type' => 'text', - 'default' => 'rtmp://lainchan.org/live/&stream') + 'default' => 'rtmp://lainchan.org/live/stream' + ); + $theme['config'][] = Array( + 'title' => 'RTMP Video.JS stream URL', + 'name' => 'rtmpvideojsurl', + 'type' => 'text', + 'default' => 'rtmp://lainchan.org/live/&stream' ); $theme['config'][] = Array( 'title' => 'OGV Status URL', 'name' => 'ogvstatus', 'type' => 'text', - 'default' => '/radio_assets/status.xsl') + 'default' => '/radio_assets/status.xsl' ); $theme['config'][] = Array( 'title' => 'RTMP Status URL', 'name' => 'rtmpstatus', 'type' => 'text', - 'default' => '/live/status?app=live&name=stream') + 'default' => '/live/status?app=live&name=stream' ); $theme['config'][] = Array( 'title' => 'RTMP Viewers URL', 'name' => 'rtmpviewers', 'type' => 'text', - 'default' => '/live/subs?app=live&name=stream') + 'default' => '/live/subs?app=live&name=stream' ); diff --git a/templates/themes/stream/stream.html b/templates/themes/stream/stream.html index cf952366..dc2ed26d 100644 --- a/templates/themes/stream/stream.html +++ b/templates/themes/stream/stream.html @@ -12,6 +12,9 @@ {% if config.font_awesome %}{% endif %} +