aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies/player/audio.phtml
diff options
context:
space:
mode:
authorMaZderMind2015-03-01 16:17:20 +0100
committerMaZderMind2015-03-01 16:17:20 +0100
commitb07e1beaa8e3ff0653ea5b02cd26737c227dc667 (patch)
treed659fd6acba7951f3c31564fb33b929c9a50048e /template/assemblies/player/audio.phtml
parent20dd29c322a24a2ef9e3f0e5c269a97acd5d2518 (diff)
music & audio tabs
Diffstat (limited to '')
-rw-r--r--template/assemblies/player/audio.phtml26
1 files changed, 18 insertions, 8 deletions
diff --git a/template/assemblies/player/audio.phtml b/template/assemblies/player/audio.phtml
index c1c7f8f..e007ab3 100644
--- a/template/assemblies/player/audio.phtml
+++ b/template/assemblies/player/audio.phtml
@@ -3,12 +3,22 @@
preload="auto"
style="width: 230px;"
>
- <source
- src="<?=h(link_stream('audio', $room, 'mp3', @$translated))?>"
- type="audio/mp3"
- />
- <source
- src="<?=h(link_stream('audio', $room, 'opus', @$translated))?>"
- type="audio/opus"
- />
+ <? 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>