mirror of https://github.com/sualko/cloud_bbb
refactor: remove deprecated api calls
parent
119d988b95
commit
27aa28da81
|
@ -97,7 +97,7 @@ class API {
|
||||||
$joinMeetingParams = new JoinMeetingParameters($room->uid, $displayname, $password);
|
$joinMeetingParams = new JoinMeetingParameters($room->uid, $displayname, $password);
|
||||||
|
|
||||||
// ensure that float is not converted to a string in scientific notation
|
// ensure that float is not converted to a string in scientific notation
|
||||||
$joinMeetingParams->setCreationTime(sprintf("%.0f", $creationTime));
|
$joinMeetingParams->setCreateTime(sprintf("%.0f", $creationTime));
|
||||||
$joinMeetingParams->setJoinViaHtml5(true);
|
$joinMeetingParams->setJoinViaHtml5(true);
|
||||||
$joinMeetingParams->setRedirect(true);
|
$joinMeetingParams->setRedirect(true);
|
||||||
$joinMeetingParams->setGuest($uid === null);
|
$joinMeetingParams->setGuest($uid === null);
|
||||||
|
@ -156,11 +156,11 @@ class API {
|
||||||
|
|
||||||
private function buildMeetingParams(Room $room, Presentation $presentation = null): CreateMeetingParameters {
|
private function buildMeetingParams(Room $room, Presentation $presentation = null): CreateMeetingParameters {
|
||||||
$createMeetingParams = new CreateMeetingParameters($room->uid, $room->name);
|
$createMeetingParams = new CreateMeetingParameters($room->uid, $room->name);
|
||||||
$createMeetingParams->setAttendeePassword($room->attendeePassword);
|
$createMeetingParams->setAttendeePW($room->attendeePassword);
|
||||||
$createMeetingParams->setModeratorPassword($room->moderatorPassword);
|
$createMeetingParams->setModeratorPW($room->moderatorPassword);
|
||||||
$createMeetingParams->setRecord($room->record);
|
$createMeetingParams->setRecord($room->record);
|
||||||
$createMeetingParams->setAllowStartStopRecording($room->record);
|
$createMeetingParams->setAllowStartStopRecording($room->record);
|
||||||
$createMeetingParams->setLogoutUrl($this->urlGenerator->getBaseUrl());
|
$createMeetingParams->setLogoutURL($this->urlGenerator->getBaseUrl());
|
||||||
$createMeetingParams->setMuteOnStart($room->getJoinMuted());
|
$createMeetingParams->setMuteOnStart($room->getJoinMuted());
|
||||||
|
|
||||||
$createMeetingParams->addMeta('bbb-origin-version', $this->appManager->getAppVersion(Application::ID));
|
$createMeetingParams->addMeta('bbb-origin-version', $this->appManager->getAppVersion(Application::ID));
|
||||||
|
@ -179,7 +179,7 @@ class API {
|
||||||
$createMeetingParams->setModeratorOnlyMessage($this->l10n->t('To invite someone to the meeting, send them this link: %s', [$invitationUrl]));
|
$createMeetingParams->setModeratorOnlyMessage($this->l10n->t('To invite someone to the meeting, send them this link: %s', [$invitationUrl]));
|
||||||
|
|
||||||
if (!empty($room->welcome)) {
|
if (!empty($room->welcome)) {
|
||||||
$createMeetingParams->setWelcomeMessage($room->welcome);
|
$createMeetingParams->setWelcome($room->welcome);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($room->maxParticipants > 0) {
|
if ($room->maxParticipants > 0) {
|
||||||
|
@ -200,7 +200,7 @@ class API {
|
||||||
|
|
||||||
public function getRecording(string $recordId) {
|
public function getRecording(string $recordId) {
|
||||||
$recordingParams = new GetRecordingsParameters();
|
$recordingParams = new GetRecordingsParameters();
|
||||||
$recordingParams->setRecordId($recordId);
|
$recordingParams->setRecordID($recordId);
|
||||||
$recordingParams->setState('any');
|
$recordingParams->setState('any');
|
||||||
|
|
||||||
$response = $this->getServer()->getRecordings($recordingParams);
|
$response = $this->getServer()->getRecordings($recordingParams);
|
||||||
|
@ -220,7 +220,7 @@ class API {
|
||||||
|
|
||||||
public function getRecordings(Room $room): array {
|
public function getRecordings(Room $room): array {
|
||||||
$recordingParams = new GetRecordingsParameters();
|
$recordingParams = new GetRecordingsParameters();
|
||||||
$recordingParams->setMeetingId($room->uid);
|
$recordingParams->setMeetingID($room->uid);
|
||||||
$recordingParams->setState('processing,processed,published,unpublished');
|
$recordingParams->setState('processing,processed,published,unpublished');
|
||||||
|
|
||||||
$response = $this->getServer()->getRecordings($recordingParams);
|
$response = $this->getServer()->getRecordings($recordingParams);
|
||||||
|
|
Loading…
Reference in New Issue