aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies/player/audio.phtml
blob: e007ab38f83e8ed4ccf3658c9e52951476c2fabc (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
<audio
	autoplay="autoplay"
	preload="auto"
	style="width: 230px;"
>
	<? if(in_array("audio-mp3", $formats)): ?>
		<source
			src="<?=h(link_stream('audio', $room, 'mp3', @$translated))?>"
			type="audio/mp3"
		/>
	<? endif ?>
	<? if(in_array("audio-opus", $formats)): ?>
		<source
			src="<?=h(link_stream('audio', $room, 'opus', @$translated))?>"
			type="audio/opus"
		/>
	<? endif ?>
	<? if(in_array("audio-ogg", $formats)): ?>
		<source
			src="<?=h(link_stream('audio', $room, 'ogg', @$translated))?>"
			type="audio/ogg"
		/>
	<? endif ?>
</audio>