diff options
author | Anton Schubert | 2020-02-02 23:24:00 +0100 |
---|---|---|
committer | Anton Schubert | 2020-02-02 23:24:00 +0100 |
commit | b3b4ef36b1628bf7f593916ff59e92130078e965 (patch) | |
tree | a550127b20558eb52019d6604805f6682ee8fecb | |
parent | 0fd3d2f7a238de2a33d3e8ff6862c2482e8b97dd (diff) |
use thumbnail/poster from cdn instead of locally
Diffstat (limited to '')
-rw-r--r-- | model/Room.php | 2 | ||||
-rw-r--r-- | model/Stream.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/model/Room.php b/model/Room.php index 1fdbf7b..897bcbd 100644 --- a/model/Room.php +++ b/model/Room.php @@ -48,7 +48,7 @@ class Room } public function getThumb() { - return joinpath(['/', 'thumbs', $this->getStream().'.png']); + return proto().'://cdn.c3voc.de'.joinpath(['/thumbnail', $this->getStream(), 'thumb.jpeg']); } public function getLink() { diff --git a/model/Stream.php b/model/Stream.php index d577df6..e260ef9 100644 --- a/model/Stream.php +++ b/model/Stream.php @@ -265,6 +265,6 @@ class Stream ); } public function getPoster() { - return joinpath(['/', 'thumbs', rawurlencode($this->getRoom()->getStream()).'-poster.png']); + return proto().'://cdn.c3voc.de'.joinpath(['/thumbnail', $this->getRoom()->getStream(), 'poster.jpeg']); } } |