diff options
author | Anton Schubert | 2020-09-04 19:45:45 +0200 |
---|---|---|
committer | Anton Schubert | 2020-09-04 19:45:45 +0200 |
commit | fa6f1dd85567d19a4e435237b28da7cdc9c6e564 (patch) | |
tree | 07e66b7fb61f8a751c1a6f8fd560bd023e5b887e | |
parent | 8ded7d71f152fb4d5d087cfac9c1b45ff9c37f66 (diff) |
add back HD streams to streams api, add poster url to api-v2
-rw-r--r-- | model/Room.php | 6 | ||||
-rw-r--r-- | view/streams-json-v2.php | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/model/Room.php b/model/Room.php index 28c60c6..f1cb933 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(); } @@ -248,7 +252,7 @@ class Room public function getSelectionNames() { - $selections = array(); + $selections = array('hd'); if($this->hasDash()) $selections[] = 'dash'; diff --git a/view/streams-json-v2.php b/view/streams-json-v2.php index 9fe0792..24436de 100644 --- a/view/streams-json-v2.php +++ b/view/streams-json-v2.php @@ -105,6 +105,7 @@ foreach (Conferences::getActiveConferences() as $conference) 'slug' => $room->getSlug(), 'schedulename' => $room->getScheduleName(), 'thumb' => $room->getThumb(), + 'poster' => $room->getPoster(), 'link' => forceslash(baseurl()).$room->getLink(), 'display' => $room->getDisplay(), 'stream' => $room->getStream(), |