aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies/player/video.phtml
blob: 0861cf841a3a69187f9006f46823898cd00390f0 (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
<div style="max-width: <?=h($width)?>px; max-height: <?=h($height)?>px;" class="video-wrap">
	<video
		autoplay="autoplay"
		preload="auto"
		width="<?=h($width)?>"
		height="<?=h($height)?>"
		style="width: 100%; height: 100%;"
	>
		<? if(in_array("webm-$selection", $formats)): ?>
			<source
				data-plugin-type="native"
				src="<?=h(link_stream('webm', $room, $selection, $translated))?>"
				title="WebM (Icecast)"
				type="video/webm"
			/>
		<? endif ?>
		<? if(in_array("hls-$selection", $formats)): ?>
			<source
				data-plugin-type="native"
				src="<?=h(link_stream('hls', $room, $hlsformat, $translated))?>"
				title="h.264 (HLS)"
				type="application/vnd.apple.mpegURL"
			/>
		<? endif ?>
		<? if(in_array("rtmp-$selection", $formats)): ?>
			<source
				data-plugin-type="flash"
				src="<?=h(link_stream('rtmp', $room, $selection, $translated))?>"
				title="h.264 (RTMP)"
				type="video/rtmp"
			/>
		<? endif ?>
	</video>
</div>