p = (new CreateMeetingParameters($s->uuid, $s->title))
->setRecord((bool) $s->allow_recording)
->setAllowStartStopRecording((bool) $s->allow_recording)
->setWelcome($description)
->setMuteOnStart((bool) $s->mute_on_entry)
->setAllowModsToUnmuteUsers(true)
->setAllowModsToEjectCameras(true)
->setMeetingKeepEvents(true)
->setGuestPolicy(
$s->has_waitingroom ? "ASK_MODERATOR" : "ALWAYS_ACCEPT"
)
->setLogoutURL(Yii::$app->urlManager->createAbsoluteUrl($exitUrl . "?highlight=" . $s->id))
->setMeetingLayout($s->layout);
if ($s->presentation_file_id > 0) {
$presentationUrl = Url::to('/bbb/public/download', true) . "?token=" . $s->public_token . "&type=presentation";
$p->addPresentation($presentationUrl, file_get_contents($presentationUrl), $s->name . "_presentation.pdf");
}
$r = $this->bbb->createMeeting($p);