Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "bigbluebutton/bigbluebutton-api-php",
"name": "nimah79/bigbluebutton-api-php",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you revert this one please?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

"type": "library",
"description": "BigBlueButton PHP API Library for PHP",
"keywords": [
Expand Down
31 changes: 31 additions & 0 deletions src/Parameters/CreateMeetingParameters.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ class CreateMeetingParameters extends MetaParameters

private ?int $meetingExpireWhenLastUserLeftInMinutes = null;

private ?string $preUploadedPresentation = null;

private ?string $preUploadedPresentationName = null;

private ?bool $preUploadedPresentationOverrideDefault = null;

/**
Expand Down Expand Up @@ -1218,6 +1222,31 @@ public function isPreUploadedPresentationOverrideDefault(): ?bool
return $this->preUploadedPresentationOverrideDefault;
}

/**
* If passed with a valid presentation file url, this presentation will override the default presentation.
* To only upload but not set as default, also pass preUploadedPresentationOverrideDefault=false
*
* @since 2.7.2
*/
public function setPreUploadedPresentation(string $preUploadedPresentation): self
{
$this->preUploadedPresentation = $preUploadedPresentation;

return $this;
}

/**
* If passed it will use this string as the name of the presentation uploaded via preUploadedPresentation
*
* @since 2.7.2
*/
public function setPreUploadedPresentationName(string $preUploadedPresentationName): self
{
$this->preUploadedPresentationName = $preUploadedPresentationName;

return $this;
}

/**
* If it is true, the default.pdf document is not sent along with the other presentations in the /create
* endpoint, on the other hand, if that's false, the default.pdf is sent with the other documents.
Expand Down Expand Up @@ -1449,6 +1478,8 @@ public function getHTTPQuery(): string
'userCameraCap' => $this->userCameraCap,
'meetingExpireIfNoUserJoinedInMinutes' => $this->meetingExpireIfNoUserJoinedInMinutes,
'meetingExpireWhenLastUserLeftInMinutes' => $this->meetingExpireWhenLastUserLeftInMinutes,
'preUploadedPresentation' => $this->preUploadedPresentation,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to apply code formatting here.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

'preUploadedPresentationName' => $this->preUploadedPresentationName,
'preUploadedPresentationOverrideDefault' => $this->preUploadedPresentationOverrideDefault,
'disabledFeatures' => join(',', $this->disabledFeatures),
'disabledFeaturesExclude' => join(',', $this->disabledFeaturesExclude),
Expand Down