bigbluebutton-api-php icon indicating copy to clipboard operation
bigbluebutton-api-php copied to clipboard

Set Role In Joining Meeting API

Open AamirAnwar3311 opened this issue 1 year ago • 1 comments

Can you please tell me how to assign role to the users. When they are joining the meeting using "Join Method". Thanks

AamirAnwar3311 avatar Apr 17 '24 14:04 AamirAnwar3311

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);

DigitalTimK avatar Apr 20 '24 07:04 DigitalTimK