diff options
author | Simeon Keske | 2020-06-09 21:24:18 +0200 |
---|---|---|
committer | Anton Schubert | 2020-06-14 15:24:18 +0200 |
commit | ca0ad31572ed0bd0ed4c044dd9ed6ce307a80d98 (patch) | |
tree | ced4704e0a25adcf36ceab042c8986cd65cfa9eb /model/Room.php | |
parent | 755401983fea4d3f8cf781bf305b9df713904486 (diff) |
make cdn configurable
Diffstat (limited to 'model/Room.php')
-rw-r--r-- | model/Room.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/model/Room.php b/model/Room.php index b0f700a..28c60c6 100644 --- a/model/Room.php +++ b/model/Room.php @@ -48,7 +48,7 @@ class Room } public function getThumb() { - return proto().'://cdn.c3voc.de'.joinpath(['/thumbnail', $this->getStream(), 'thumb.jpeg']); + return proto().'://'.joinpath([$GLOBALS['CONFIG']['CDN'], 'thumbnail', $this->getStream(), 'thumb.jpeg']); } public function getLink() { @@ -201,11 +201,11 @@ class Room } public function getHLSPlaylistUrl() { - return proto().'://cdn.c3voc.de/hls/'.rawurlencode($this->getStream()).'_native_hd.m3u8'; + return proto().'://'.joinpath([$GLOBALS['CONFIG']['CDN'], 'hls', rawurlencode($this->getStream()).'_native_hd.m3u8']); } public function getDashManifestUrl() { - return proto().'://cdn.c3voc.de/dash/'.rawurlencode($this->getStream()).'/manifest.mpd'; + return proto().'://'.joinpath([$GLOBALS['CONFIG']['CDN'], 'dash', rawurlencode($this->getStream()).'/manifest.mpd']); } public function getDashTech() { |