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
|
<h3>Formats</h3>
<ul class="formats">
<? foreach($videores as $iter): ?>
<li>
<span class="label filetype" title="<?=h(format_text($iter))?>"><?=h(strtoupper($iter))?></span>
<? if($has_translation): ?>
<a href="<?=h(link_player($room, $iter))?>">
<span class="fa fa-flag-o"></span>
native
</a>
<a href="<?=h(link_player($room, $iter, true))?>">
<span class="fa fa-flag"></span>
translated
</a>
<? else: ?>
<a href="<?=h(link_player($room, $iter))?>">
<span class="fa fa-video-camera"></span>
video
</a>
<? endif ?>
</li>
<? endforeach ?>
</ul>
<? include("$assemblies/desktop-player.phtml") ?>
<div class="directlinks">
<? foreach($protos as $proto): ?>
<h3>Directlinks (<?=h(strtoupper($proto))?>)</h3>
<ul>
<? foreach($formats as $format): ?>
<? if(!startswith($proto, $format)) continue ?>
<? $res = substr($format, -2) ?>
<li>
<span class="label filetype" title="<?=h(format_text($res))?>"><?=h(strtoupper($res))?></span>
<? if($has_translation): ?>
<a href="<?=h(link_stream($proto, $room, $res))?>">
<span class="fa fa-flag-o"></span>
native
</a>
<a href="<?=h(link_stream($proto, $room, $res, true))?>">
<span class="fa fa-flag"></span>
translated
</a>
<? else: ?>
<a href="<?=h(link_stream($proto, $room, $res))?>">
<span class="fa fa-video-camera"></span>
video
</a>
<? endif ?>
</li>
<? endforeach ?>
</ul>
<? endforeach ?>
</div>
|