diff options
author | Anton Schubert | 2020-05-02 22:18:24 +0200 |
---|---|---|
committer | Anton Schubert | 2020-05-02 22:18:34 +0200 |
commit | aec18c42ef72bf93dc4e931dbca4ade19db5d9fb (patch) | |
tree | a07a135689cb3e18b54bbf48c17fc73a0dc33648 /template/assemblies/player/audio.phtml | |
parent | 78645e1c4d1a7d6fc3fd333c91c024e4e4f9de2c (diff) |
use voc-player for audioOnly (except explicit translated versions), remove dash notice
Diffstat (limited to 'template/assemblies/player/audio.phtml')
-rw-r--r-- | template/assemblies/player/audio.phtml | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/template/assemblies/player/audio.phtml b/template/assemblies/player/audio.phtml index c3594eb..71b01b4 100644 --- a/template/assemblies/player/audio.phtml +++ b/template/assemblies/player/audio.phtml @@ -1,3 +1,5 @@ +<!-- Uses regular player only if translation is forced --> +<? if($stream->isTranslated()): ?> <video preload="auto" controls="controls" @@ -9,8 +11,15 @@ src="<?=h($stream->getAudioUrl('mp3'))?>" type="audio/mp3" /> - <source - src="<?=h($stream->getAudioUrl('opus'))?>" - type="audio/opus" - /> </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 ?> + |