diff options
author | MaZderMind | 2015-07-03 13:09:15 +0200 |
---|---|---|
committer | MaZderMind | 2015-07-03 13:09:15 +0200 |
commit | b2cdfa500fa2ae85079e61be4a767b2960e47601 (patch) | |
tree | 826c5d169bb1bc2ce8afec22e40a1de15eaf2185 /model/Stream.php | |
parent | fa9baf320c7d4ffda01dbc1509a54390cc9bd1db (diff) |
ssl() and proto() helper to keep visitors on their url scheme
Diffstat (limited to 'model/Stream.php')
-rw-r--r-- | model/Stream.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/model/Stream.php b/model/Stream.php index fe333ce..f9488a0 100644 --- a/model/Stream.php +++ b/model/Stream.php @@ -114,10 +114,10 @@ class Stream switch($proto) { case 'webm': - return 'http://cdn.c3voc.de/'.rawurlencode($this->getRoom()->getStream()).'_'.rawurlencode($this->getLanguage()).'_'.rawurlencode($this->getSelection()).'.webm'; + return proto().'://cdn.c3voc.de/'.rawurlencode($this->getRoom()->getStream()).'_'.rawurlencode($this->getLanguage()).'_'.rawurlencode($this->getSelection()).'.webm'; case 'hls': - return 'http://cdn.c3voc.de/hls/'.rawurlencode($this->getRoom()->getStream()).'_'.rawurlencode($this->getLanguage()).'_'.rawurlencode($this->getSelection()).'.m3u8'; + return proto().'://cdn.c3voc.de/hls/'.rawurlencode($this->getRoom()->getStream()).'_'.rawurlencode($this->getLanguage()).'_'.rawurlencode($this->getSelection()).'.m3u8'; } return null; @@ -179,10 +179,10 @@ class Stream switch($proto) { case 'mp3': - return 'http://cdn.c3voc.de/'.rawurlencode($this->getRoom()->getStream()).'_'.rawurlencode($this->getLanguage()).'.mp3'; + return proto().'://cdn.c3voc.de/'.rawurlencode($this->getRoom()->getStream()).'_'.rawurlencode($this->getLanguage()).'.mp3'; case 'opus': - return 'http://cdn.c3voc.de/'.rawurlencode($this->getRoom()->getStream()).'_'.rawurlencode($this->getLanguage()).'.opus'; + return proto().'://cdn.c3voc.de/'.rawurlencode($this->getRoom()->getStream()).'_'.rawurlencode($this->getLanguage()).'.opus'; } return null; @@ -213,10 +213,10 @@ class Stream switch($proto) { case 'mp3': - return 'http://cdn.c3voc.de/'.rawurlencode($this->getRoom()->getStream()).'.mp3'; + return proto().'://cdn.c3voc.de/'.rawurlencode($this->getRoom()->getStream()).'.mp3'; case 'opus': - return 'http://cdn.c3voc.de/'.rawurlencode($this->getRoom()->getStream()).'.opus'; + return proto().'://cdn.c3voc.de/'.rawurlencode($this->getRoom()->getStream()).'.opus'; default: return null; |