bigbluebutton-api-php
bigbluebutton-api-php copied to clipboard
Set Role In Joining Meeting API
Can you please tell me how to assign role to the users. When they are joining the meeting using "Join Method". Thanks
You need to define it with the JoinMeetingParameters
$meetingId = 123;
$username = "John Doe";
$role = Role::MODERATOR; // or Role::VIEWER (from BigBlueButton\Enum\Role)
$joinMeetingParameters = new JoinMeetingParameters($meetingId, $username, $role);
$this->bbb->joinMeeting($joinMeetingParameters);