aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies/player/audio.phtml
blob: 71b01b4d0446d16048bb863639464aae3aec786b (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
<!-- Uses regular player only if translation is forced -->
<? if($stream->isTranslated()): ?>
<video
	preload="auto"
	controls="controls"
	autoplay="autoplay"
	style="max-height: 400px; max-width:100vw; display: block; margin: auto;"
	poster="<?=h($stream->getPoster())?>"
>
	<source
		src="<?=h($stream->getAudioUrl('mp3'))?>"
		type="audio/mp3"
	/>
</video>

<!-- Use voc-player per default, TODO: implement preferred language feature -->
<? else: ?>
<div class="video-wrap"
	data-voc-player
	data-stream="<?=h($room->getStream())?>"
	data-poster="<?=h($stream->getPoster())?>"
	data-audio-only="true"
></div>
<? endif ?>