aboutsummaryrefslogtreecommitdiff
path: root/model/Room.php
diff options
context:
space:
mode:
authorSimeon Keske2020-06-09 21:24:18 +0200
committerAnton Schubert2020-06-14 15:24:18 +0200
commitca0ad31572ed0bd0ed4c044dd9ed6ce307a80d98 (patch)
treeced4704e0a25adcf36ceab042c8986cd65cfa9eb /model/Room.php
parent755401983fea4d3f8cf781bf305b9df713904486 (diff)
make cdn configurable
Diffstat (limited to 'model/Room.php')
-rw-r--r--model/Room.php6
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() {