aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies/switcher/miniroom-video.phtml
blob: f6d052d1a3686d8fa0a6b76149bee9d6800fb934 (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
<h3>Formats</h3>
<ul>
	<? foreach(array('hd', 'sd') as $iter): ?>
		<li>
			<span class="label filetype" title="<?=h(format_text($iter))?>"><?=h(strtoupper($iter))?></span>
			<a href="<?=h(link_player($room, $iter))?>">
				<span class="fa fa-flag-o"></span>
				video
			</a>
		</li>
	<? endforeach ?>
</ul>

<hr />

<? foreach(array('rtmp', 'hls') as $protocol): ?>
	<h3>Directlinks (<?=h(strtoupper($protocol))?>)</h3>
	<ul>
		<?
			if($protocol == 'hls')
				$formats = array('auto', 'hd', 'sd');
			else
				$formats = array('hd', 'sd');
		?>
		<? foreach($formats as $iter): ?>
			<li>
				<span class="label filetype" title="<?=h(format_text($iter))?>"><?=h(strtoupper($iter))?></span>
				<a href="<?=h(link_stream($protocol, $room, $iter))?>">
					<span class="fa fa-flag-o"></span>
					video
				</a>
			</li>
		<? endforeach ?>
	</ul>
<? endforeach ?>

<h3>Directlinks (WebM)</h3>
<ul>
	<? foreach(array('hd', 'sd') as $iter): ?>
		<li>
			<span class="label filetype" title="<?=h(format_text('webm'))?>"><?=h(strtoupper($iter))?></span>
			<a href="<?=h(link_stream('webm', $room, $iter))?>">
				<span class="fa fa-flag-o"></span>
				video
			</a>
		</li>
	<? endforeach ?>
</ul>