From fbb304af5aa8655ff48c5b9c867509dd9f5b1de5 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Thu, 29 Dec 2016 03:55:26 +0100 Subject: add dash to the json-api --- model/Room.php | 4 ++++ view/streams-json-v1.php | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/model/Room.php b/model/Room.php index fffb3c4..ecab17e 100644 --- a/model/Room.php +++ b/model/Room.php @@ -167,6 +167,10 @@ class Room return proto().'://dekan.cch.c3voc.de/dash/'.rawurlencode($this->getStream()).'/manifest.mpd'; } + public function getDashTech() { + return 'Adaptive multi-format-multi-bitrate-Stream to rule the World!!1elf'; + } + public function hasTranslation() { return $this->getConference()->get('ROOMS.'.$this->getSlug().'.TRANSLATION'); } diff --git a/view/streams-json-v1.php b/view/streams-json-v1.php index f64f627..8cdac19 100644 --- a/view/streams-json-v1.php +++ b/view/streams-json-v1.php @@ -62,6 +62,14 @@ foreach (Conferences::getActiveConferences() as $conference) ); } break; + + case 'dash': + $urls['dash'] = array( + 'display' => $display, + 'tech' => $room->getDashTech(), + 'url' => $room->getDashManifestUrl(), + ); + break; } $streams[] = array( -- cgit v1.2.3