Skip to content

Commit

Permalink
Improve easyRoom method
Browse files Browse the repository at this point in the history
  • Loading branch information
mvnrsa committed Sep 7, 2017
1 parent edcbd5e commit cc40b3e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion JanusObject.php
Expand Up @@ -207,10 +207,15 @@ function createRoom($room=0,$params=array())
return false;
}

function easyRoom($desc,$rec_dir='',$room=0,$bitrate=0)
function easyRoom($desc,$rec_dir='',$room=0,$bitrate=0,$publishers=6,$secret='')
{
if (empty($secret))
$secret = $this->gRS(20);

$params = array();
$params['description'] = $desc;
$params['secret'] = $secret;
$params['publishers'] = $publishers;
if ($bitrate > 0)
$params['bitrate'] = $bitrate;
if (!empty($rec_dir))
Expand Down

0 comments on commit cc40b3e

Please sign in to comment.