aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies/player/video.phtml
blob: cbbf06b55c7f048c13b597c034717b0cb1203a79 (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
<div
	style="max-width: <?=h($stream->getVideoWidth())?>px; max-height: <?=h($stream->getVideoHeight())?>px;"
	class="video-wrap <? if($room->hasSubtitles()): ?>has-subtitles<? endif ?>"
	data-subtitles-room-id="<?=h($room->getSubtitlesRoomId())?>"
>
	<video
		<? if(!isset($autoplay) || $autoplay == true): ?>
			autoplay="autoplay"
		<? endif ?>
		preload="auto"
		width="<?=h($stream->getVideoWidth())?>"
		height="<?=h($stream->getVideoHeight())?>"
		style="width: 100%; height: 100%;"
	>
		<source
			data-plugin-type="native"
			src="<?=h($stream->getVideoUrl('webm'))?>"
			title="WebM (Icecast)"
			type="video/webm"
		/>
		<source
			data-plugin-type="native"
			src="<?=h($stream->getVideoUrl('hls'))?>"
			title="h.264 (HLS)"
			type="application/vnd.apple.mpegURL"
		/>
	</video>
</div>