From b3b4ef36b1628bf7f593916ff59e92130078e965 Mon Sep 17 00:00:00 2001 From: Anton Schubert Date: Sun, 2 Feb 2020 23:24:00 +0100 Subject: use thumbnail/poster from cdn instead of locally --- model/Room.php | 2 +- 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']); } } -- cgit v1.2.3