2016-10-08 02:29:06 -04:00
|
|
|
<?php
|
|
|
|
$theme = Array();
|
|
|
|
|
|
|
|
// Theme name
|
|
|
|
$theme['name'] = 'Stream';
|
|
|
|
// Description (you can use Tinyboard markup here)
|
|
|
|
$theme['description'] = 'Stream page';
|
|
|
|
$theme['version'] = 'v0.9.1';
|
|
|
|
|
|
|
|
// Theme configuration
|
|
|
|
$theme['config'] = Array();
|
|
|
|
|
|
|
|
$theme['config'][] = Array(
|
|
|
|
'title' => 'Site title',
|
|
|
|
'name' => 'title',
|
|
|
|
'type' => 'text'
|
|
|
|
);
|
|
|
|
|
|
|
|
$theme['config'][] = Array(
|
|
|
|
'title' => 'Slogan',
|
|
|
|
'name' => 'subtitle',
|
|
|
|
'type' => 'text',
|
|
|
|
'comment' => '(optional)'
|
|
|
|
);
|
|
|
|
|
|
|
|
$theme['config'][] = Array(
|
|
|
|
'title' => 'File',
|
|
|
|
'name' => 'file',
|
|
|
|
'type' => 'text',
|
|
|
|
'default' => 'stream.html',
|
|
|
|
'comment' => '(eg. "stream.html")'
|
|
|
|
);
|
|
|
|
$theme['config'][] = Array(
|
|
|
|
'title' => 'OGV stream URL',
|
|
|
|
'name' => 'ogvurl',
|
|
|
|
'type' => 'text',
|
2017-04-30 00:12:05 -04:00
|
|
|
'default' => 'https://lainchan.org/icecast/lainstream.ogg'
|
2016-10-08 02:29:06 -04:00
|
|
|
);
|
|
|
|
$theme['config'][] = Array(
|
|
|
|
'title' => 'RTMP stream URL',
|
|
|
|
'name' => 'rtmpurl',
|
|
|
|
'type' => 'text',
|
2017-04-30 00:12:05 -04:00
|
|
|
'default' => 'rtmp://lainchan.org/show/stream'
|
2016-12-10 04:18:27 -05:00
|
|
|
);
|
|
|
|
$theme['config'][] = Array(
|
|
|
|
'title' => 'RTMP Video.JS stream URL',
|
|
|
|
'name' => 'rtmpvideojsurl',
|
|
|
|
'type' => 'text',
|
2017-04-30 00:12:05 -04:00
|
|
|
'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'
|
2016-10-08 02:29:06 -04:00
|
|
|
);
|
|
|
|
|
|
|
|
$theme['config'][] = Array(
|
|
|
|
'title' => 'OGV Status URL',
|
|
|
|
'name' => 'ogvstatus',
|
|
|
|
'type' => 'text',
|
2016-12-10 04:18:27 -05:00
|
|
|
'default' => '/radio_assets/status.xsl'
|
2016-10-08 02:29:06 -04:00
|
|
|
);
|
|
|
|
|
|
|
|
$theme['config'][] = Array(
|
|
|
|
'title' => 'RTMP Status URL',
|
|
|
|
'name' => 'rtmpstatus',
|
|
|
|
'type' => 'text',
|
2016-12-10 04:18:27 -05:00
|
|
|
'default' => '/live/status?app=live&name=stream'
|
2016-10-08 02:29:06 -04:00
|
|
|
);
|
|
|
|
$theme['config'][] = Array(
|
|
|
|
'title' => 'RTMP Viewers URL',
|
|
|
|
'name' => 'rtmpviewers',
|
|
|
|
'type' => 'text',
|
2016-12-10 04:18:27 -05:00
|
|
|
'default' => '/live/subs?app=live&name=stream'
|
2016-10-08 02:29:06 -04:00
|
|
|
);
|
2017-04-30 00:12:05 -04:00
|
|
|
$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'
|
|
|
|
);
|
2016-10-08 02:29:06 -04:00
|
|
|
|
|
|
|
|
|
|
|
// Unique function name for building everything
|
|
|
|
$theme['build_function'] = 'stream_build';
|
|
|
|
$theme['install_callback'] = 'stream_install';
|
|
|
|
if (!function_exists('stream_install')) {
|
|
|
|
function stream_install($settings) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|