From 36ad969d40a1505a5df3950c474197cb3ff2d456 Mon Sep 17 00:00:00 2001 From: Anton Schubert Date: Fri, 4 Sep 2020 19:55:18 +0200 Subject: add back HD streams to streams api, add poster url to api-v2 --- model/Room.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'model/Room.php') diff --git a/model/Room.php b/model/Room.php index 28c60c6..f8f96d4 100644 --- a/model/Room.php +++ b/model/Room.php @@ -51,6 +51,10 @@ class Room return proto().'://'.joinpath([$GLOBALS['CONFIG']['CDN'], 'thumbnail', $this->getStream(), 'thumb.jpeg']); } + public function getPoster() { + return proto().'://'.joinpath([$GLOBALS['CONFIG']['CDN'], 'thumbnail', $this->getStream(), 'poster.jpeg']); + } + public function getLink() { return joinpath([$this->getConference()->getSlug(), $this->getSlug()]).url_params(); } @@ -342,6 +346,7 @@ class Room public function getStreams() { $selections = $this->getSelectionNames(); + $selections[] = "hd"; $streams = array(); foreach ($selections as $selection) { -- cgit v1.2.3