mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 06:34:17 +00:00
repiar embedding
This commit is contained in:
parent
968a41c635
commit
f5b3525b17
2 changed files with 9 additions and 7 deletions
|
@ -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)
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in a new issue