mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 06:34:17 +00:00
fix audio only player
This commit is contained in:
parent
4fee19453b
commit
4ecbc1e9ed
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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>
|
Loading…
Reference in a new issue