forked from leftypol/leftypol
Add stream theme / extension to Lainchan
This commit is contained in:
parent
f469416073
commit
a1a83f50ba
4 changed files with 192 additions and 0 deletions
74
templates/themes/stream/info.php
Normal file
74
templates/themes/stream/info.php
Normal file
|
@ -0,0 +1,74 @@
|
|||
<?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',
|
||||
'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')
|
||||
);
|
||||
|
||||
$theme['config'][] = Array(
|
||||
'title' => 'OGV Status URL',
|
||||
'name' => 'ogvstatus',
|
||||
'type' => 'text',
|
||||
'default' => '/radio_assets/status.xsl')
|
||||
);
|
||||
|
||||
$theme['config'][] = Array(
|
||||
'title' => 'RTMP Status URL',
|
||||
'name' => 'rtmpstatus',
|
||||
'type' => 'text',
|
||||
'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')
|
||||
);
|
||||
|
||||
|
||||
// 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) {
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue