diff options
author | Anton Schubert | 2020-09-04 19:55:18 +0200 |
---|---|---|
committer | Anton Schubert | 2020-09-04 19:55:34 +0200 |
commit | 36ad969d40a1505a5df3950c474197cb3ff2d456 (patch) | |
tree | 1a71d39294f6bc97805d6a7055392cf2a6506e00 /model/Room.php | |
parent | a2bad03489d7bb1d609b6b7746da11c97c23d973 (diff) |
add back HD streams to streams api, add poster url to api-v2
Diffstat (limited to 'model/Room.php')
-rw-r--r-- | model/Room.php | 5 |
1 files changed, 5 insertions, 0 deletions
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) { |