fix audio only player

This commit is contained in:
Anton Schubert 2023-12-28 12:40:06 +01:00
parent 4fee19453b
commit 4ecbc1e9ed
2 changed files with 2 additions and 2 deletions

View file

@ -204,7 +204,7 @@ class Stream
switch($proto)
{
case 'hls':
return proto().'://'.joinpath([$GLOBALS['CONFIG']['CDN'], 'hls/'.rawurlencode($this->getRoom()->getStream()).'/segment_'.rawurlencode(ucfirst($this->getLanguage())).'.m3u8']);
return proto().'://'.joinpath([$GLOBALS['CONFIG']['CDN'], 'hls/'.rawurlencode($this->getRoom()->getStream()).'/'.rawurlencode(ucfirst($this->getLanguage())).'.m3u8']);
}
return null;

View file

@ -1,7 +1,7 @@
<!-- Use voc-player per default, TODO: implement preferred language feature -->
<div class="video-wrap"
data-voc-player
data-stream="<?=h($stream->getAudioUrl('hls'))?>"
data-source="<?=h($stream->getAudioUrl('hls'))?>"
data-poster="<?=h($stream->getPoster())?>"
data-audio-only="true"
></div>