From bb334124bedfd7988c746130b9787b6da2989cac Mon Sep 17 00:00:00 2001 From: Benjamin Southall Date: Sun, 30 Apr 2017 13:12:05 +0900 Subject: Adding support for format selection for Stream theme / extension, as well as the ability to change CSS theme from stream page --- templates/themes/stream/info.php | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) (limited to 'templates/themes/stream/info.php') diff --git a/templates/themes/stream/info.php b/templates/themes/stream/info.php index 081b29ca..d522032d 100644 --- a/templates/themes/stream/info.php +++ b/templates/themes/stream/info.php @@ -34,19 +34,26 @@ 'title' => 'OGV stream URL', 'name' => 'ogvurl', 'type' => 'text', - 'default' => 'https://lainchan.org/radio_assets/lainstream.ogg' + 'default' => 'https://lainchan.org/icecast/lainstream.ogg' ); $theme['config'][] = Array( 'title' => 'RTMP stream URL', 'name' => 'rtmpurl', 'type' => 'text', - 'default' => 'rtmp://lainchan.org/live/stream' + 'default' => 'rtmp://lainchan.org/show/stream' ); $theme['config'][] = Array( 'title' => 'RTMP Video.JS stream URL', 'name' => 'rtmpvideojsurl', 'type' => 'text', - 'default' => 'rtmp://lainchan.org/live/&stream' + 'default' => 'rtmp://lainchan.org/show/&stream' + ); + + $theme['config'][] = Array( + 'title' => 'RTMP HLS stream URL', + 'name' => 'hlsurl', + 'type' => 'text', + 'default' => 'https://lainchan.org:8080/hls/stream.m3u8' ); $theme['config'][] = Array( @@ -68,6 +75,18 @@ 'type' => 'text', 'default' => '/live/subs?app=live&name=stream' ); + $theme['config'][] = Array( + 'title' => 'Formats', + 'name' => 'formats', + 'type' => 'text', + 'default' => 'hls ogg rtmp' + ); + $theme['config'][] = Array( + 'title' => 'Default Format', + 'name' => 'defaultformat', + 'type' => 'text', + 'default' => 'hls ogg rtmp' + ); // Unique function name for building everything -- cgit v1.3