Commit ed375bc4 authored by Jibon Costa's avatar Jibon Costa
Browse files

Added bbb-recording-ready-url

parent f37dd935
......@@ -753,7 +753,18 @@ class CreateMeetingParameters extends MetaParameters
*/
public function setEndCallbackUrl($endCallbackUrl)
{
$this->addMeta('endCallbackUrl', $endCallbackUrl);
$this->addMeta('endCallbackUrl', urlencode($endCallbackUrl));
return $this;
}
/**
* @param $recordingReadyCallbackUrl
* @return CreateMeetingParameters
*/
public function setRecordingReadyCallbackUrl($recordingReadyCallbackUrl)
{
$this->addMeta('bbb-recording-ready-url', urlencode($recordingReadyCallbackUrl));
return $this;
}
......
......@@ -60,7 +60,8 @@ class CreateMeetingParametersTest extends TestCase
$this->assertEquals($params['lockSettingsLockOnJoin'], $createMeetingParams->isLockSettingsLockOnJoin());
$this->assertEquals($params['lockSettingsLockOnJoinConfigurable'], $createMeetingParams->isLockSettingsLockOnJoinConfigurable());
$this->assertEquals($params['meta_presenter'], $createMeetingParams->getMeta('presenter'));
$this->assertEquals($params['meta_endCallbackUrl'], $createMeetingParams->getMeta('endCallbackUrl'));
$this->assertEquals($params['meta_endCallbackUrl'], urlencode($createMeetingParams->getMeta('endCallbackUrl')));
$this->assertEquals($params['meta_bbb-recording-ready-url'], urlencode($createMeetingParams->getMeta('bbb-recording-ready-url')));
// Check values are empty of this is not a breakout room
$this->assertNull($createMeetingParams->isBreakout());
......
......@@ -96,7 +96,8 @@ class TestCase extends \PHPUnit\Framework\TestCase
'lockSettingsLockOnJoin' => $this->faker->boolean(50),
'lockSettingsLockOnJoinConfigurable' => $this->faker->boolean(50),
'meta_presenter' => $this->faker->name,
'meta_endCallbackUrl' => $this->faker->url
'meta_endCallbackUrl' => $this->faker->url,
'meta_bbb-recording-ready-url' => $this->faker->url,
];
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment