repiar embedding

This commit is contained in:
MaZderMind 2016-12-27 10:50:48 +01:00
parent 968a41c635
commit f5b3525b17
2 changed files with 9 additions and 7 deletions

View file

@ -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)

View file

@ -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');