Skip to content

Commit

Permalink
add support of meta parameters on meeting creating
Browse files Browse the repository at this point in the history
Add support of meta parameters on meeting creating, in README add example of meta usage and link to BBB API documentation.
  • Loading branch information
Brullworfel committed Oct 18, 2019
1 parent ebc075e commit 204d7a0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ Add a meeting:
'logoutURL' => 'https://example.org/',
'record' => true,
'autoStartRecording' => true,
'meta' => [
'bn-recording-ready-url' => urlencode(https://example.com/api/v1/recording_status),
'presenter' => 'John Smith',
],
//any other parameters from [BBB API Documentation](https://docs.bigbluebutton.org/dev/api.html#create)
]);

Get meeting join URL for a moderator:
Expand Down Expand Up @@ -112,6 +117,11 @@ Copy this to a file called 'index.php', adjust the '$url' and '$secret' variable
'logoutURL' => 'https://example.org/',
'record' => true,
'autoStartRecording' => true,
'meta' => [
'bn-recording-ready-url' => urlencode(https://example.com/api/v1/recording_status),
'presenter' => 'John Smith',
],
//any other parameters from [BBB API Documentation](https://docs.bigbluebutton.org/dev/api.html#create)
]);
print '<pre>' . print_r($meeting, true) . "</pre>\n\n";

Expand Down
10 changes: 8 additions & 2 deletions src/BigBlueButton/Member/Meeting.php
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,7 @@ public function setClient(Client $client)
*/
public function create()
{
$response = $this->client->get('create', [
$parameters = [
'name' => $this->getName(),
'meetingID' => $this->getMeetingID(),
'attendeePW' => $this->getAttendeePW(),
Expand Down Expand Up @@ -1328,7 +1328,13 @@ public function create()
'lockSettingsLockedLayout' => $this->getLockSettingsLockedLayout(),
'lockSettingsLockOnJoin' => $this->getLockSettingsLockOnJoin(),
'lockSettingsLockOnJoinConfigurable' => $this->getLockSettingsLockOnJoinConfigurable(),
]);
];

foreach($this->getMetadata() as $key=>$value){
$parameters["meta_$key"] = $value;
}

$response = $this->client->get('create', $parameters);
$this->meetingID = $response->meetingID;
return $this->getInfo();
}
Expand Down

0 comments on commit 204d7a0

Please sign in to comment.