summaryrefslogtreecommitdiff
path: root/templates/themes/stream/info.php
blob: d522032d29be9811b25d665d65d2f52da4bb3523 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?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/icecast/lainstream.ogg'
          );
    $theme['config'][] =  Array(
              'title'   => 'RTMP stream URL',
              'name'    => 'rtmpurl',
              'type'    => 'text',
              'default' => 'rtmp://lainchan.org/show/stream'
          );
    $theme['config'][] =  Array(
              'title'   => 'RTMP  Video.JS stream URL',
              'name'    => 'rtmpvideojsurl',
              'type'    => 'text',
              '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(
              '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'
          );
    $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
	$theme['build_function'] = 'stream_build';
	$theme['install_callback'] = 'stream_install';
	if (!function_exists('stream_install')) {
		function stream_install($settings) {
		}
	}