diff options
Diffstat (limited to 'model')
-rw-r--r-- | model/Stream.php | 14 |
1 files changed, 8 insertions, 6 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) |