diff options
author | MaZderMind | 2016-12-27 10:50:48 +0100 |
---|---|---|
committer | MaZderMind | 2016-12-27 10:50:48 +0100 |
commit | f5b3525b17aab83ed2e8b826a854dea9ffd75773 (patch) | |
tree | 1ac71ce8c96b30d638954a242f6dc8f724947d50 | |
parent | 968a41c635df3a4f7299b7a98916a77ca43ed25a (diff) |
repiar embedding
-rw-r--r-- | model/Stream.php | 14 | ||||
-rw-r--r-- | view/embed.php | 2 |
2 files changed, 9 insertions, 7 deletions
diff --git a/model/Stream.php b/model/Stream.php index d2baa28..a51227e 100644 --- a/model/Stream.php +++ b/model/Stream.php @@ -105,12 +105,14 @@ class Stream public function getEmbedUrl() { - return - forceslash(baseurl()). - 'embed/'. - rawurlencode($this->getRoom()->getSlug()).'/'. - rawurlencode($this->getSelection()).'/'. - rawurlencode($this->getLanguage()).'/'; + return joinpath([ + baseurl(), + $this->getRoom()->getConference()->getSlug(), + 'embed', + rawurlencode($this->getRoom()->getSlug()), + rawurlencode($this->getSelection()), + rawurlencode($this->getLanguage()), + ]); } public function getVideoUrl($proto) diff --git a/view/embed.php b/view/embed.php index ccd4b98..eb7caee 100644 --- a/view/embed.php +++ b/view/embed.php @@ -1,6 +1,6 @@ <?php -$room = new Room($_GET['room']); +$room = $conference->getRoom($_GET['room']); if(!$room->hasEmbed()) throw new NotFoundException('Embedding is not enabled in this room'); |