/** * @param $params array * * @return CreateMeetingParameters */ protected function getCreateParamsMock($params) { $createMeetingParams = new CreateMeetingParameters($params['meetingId'], $params['meetingName']); $createMeetingParams->setAttendeePassword($params['attendeePassword'])->setModeratorPassword($params['moderatorPassword'])->setDialNumber($params['dialNumber'])->setVoiceBridge($params['voiceBridge'])->setWebVoice($params['webVoice'])->setLogoutUrl($params['logoutUrl'])->setMaxParticipants($params['maxParticipants'])->setRecord($params['record'])->setDuration($params['duration'])->setWelcomeMessage($params['welcomeMessage'])->setAutoStartRecording($params['autoStartRecording'])->setAllowStartStopRecording($params['allowStartStopRecording'])->setModeratorOnlyMessage($params['moderatorOnlyMessage'])->setMeta('presenter', $params['meta_presenter']); return $createMeetingParams; }
/** * @param $arrayParams * @return CreateMeetingParameters * * [ * 'meetingName' => 'Reunião de teste',# A name for the meeting. * 'meetingId' => '99999', # A meeting ID that can be used to identify this meeting * by the 3rd-party application. * 'attendeePassword' => 'ap', # Set to 'ap' and use 'ap' to join = no user pass required. * 'moderatorPassword' => 'mp', # Set to 'mp' and use 'mp' to join = no user pass required. * 'autoStartRecording' => true, # Automatically starts recording when first user joins. * 'dialNumber' => '', # The main number to call into. Optional. * 'voiceBridge' => 54321, # 5 digit PIN to join voice conference. Required. * 'webVoice' => '', # Alphanumeric to join voice. Optional. * 'logoutUrl' => '', # Default in bigbluebutton.properties. Optional. * 'maxParticipants' => -1, # Optional. -1 = unlimitted. Not supported in BBB. [number] * 'record' => false, # New. true will tell BBB to record the meeting. * 'duration' => 0, # Default = 0 which means no set duration in minutes. [number] * 'welcomeMessage' => '', # '' use default. Change to customize. * ]; * Mais informações: http://docs.bigbluebutton.org/dev/api.html#create */ public function createMeetingParameters($arrayParams) { $meetingParams = new CreateMeetingParameters($arrayParams['meetingId'], $arrayParams['meetingName']); $meetingParams->setAttendeePassword($arrayParams['attendeePassword']); $meetingParams->setModeratorPassword($arrayParams['moderatorPassword']); $meetingParams->setAutoStartRecording($arrayParams['autoStartRecording']); $meetingParams->setDialNumber($arrayParams['dialNumber']); $meetingParams->setVoiceBridge($arrayParams['meetingId']); $meetingParams->setWebVoice($arrayParams['voiceBridge']); $meetingParams->setLogoutUrl($arrayParams['logoutUrl']); $meetingParams->setMaxParticipants($arrayParams['maxParticipants']); $meetingParams->setRecord($arrayParams['record']); $meetingParams->setDuration($arrayParams['duration']); $meetingParams->setWelcomeMessage($arrayParams['welcomeMessage']); return $meetingParams; }