From ca0ad31572ed0bd0ed4c044dd9ed6ce307a80d98 Mon Sep 17 00:00:00 2001 From: Simeon Keske Date: Tue, 9 Jun 2020 21:24:18 +0200 Subject: make cdn configurable --- model/Room.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'model/Room.php') 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() { -- cgit v1.2.3