mirror of https://github.com/sualko/cloud_bbb
Merge pull request #195 from SpechtD/feat-send-all-users-to-lobby-issue192
feat: send all users to lobbypull/204/head
commit
9a974fcd47
|
@ -106,7 +106,9 @@ class API {
|
||||||
$joinMeetingParams->setCreateTime(sprintf("%.0f", $creationTime));
|
$joinMeetingParams->setCreateTime(sprintf("%.0f", $creationTime));
|
||||||
$joinMeetingParams->setJoinViaHtml5(true);
|
$joinMeetingParams->setJoinViaHtml5(true);
|
||||||
$joinMeetingParams->setRedirect(true);
|
$joinMeetingParams->setRedirect(true);
|
||||||
$joinMeetingParams->setGuest($uid === null);
|
|
||||||
|
// set the guest parameter for everyone but moderators to send all users to the waiting room if setting is selected
|
||||||
|
$joinMeetingParams->setGuest((($room->access === Room::ACCESS_WAITING_ROOM_ALL) && !$isModerator) || $uid === null);
|
||||||
|
|
||||||
$joinMeetingParams->addUserData('bbb_listen_only_mode', $room->getListenOnly());
|
$joinMeetingParams->addUserData('bbb_listen_only_mode', $room->getListenOnly());
|
||||||
|
|
||||||
|
@ -206,7 +208,7 @@ class API {
|
||||||
$createMeetingParams->addPresentation($presentation->getUrl(), null, $presentation->getFilename());
|
$createMeetingParams->addPresentation($presentation->getUrl(), null, $presentation->getFilename());
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($room->access === Room::ACCESS_WAITING_ROOM) {
|
if ($room->access === Room::ACCESS_WAITING_ROOM || $room->access === Room::ACCESS_WAITING_ROOM_ALL) {
|
||||||
$createMeetingParams->setGuestPolicyAskModerator();
|
$createMeetingParams->setGuestPolicyAskModerator();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -47,10 +47,11 @@ class Room extends Entity implements JsonSerializable {
|
||||||
public const ACCESS_PUBLIC = 'public';
|
public const ACCESS_PUBLIC = 'public';
|
||||||
public const ACCESS_PASSWORD = 'password';
|
public const ACCESS_PASSWORD = 'password';
|
||||||
public const ACCESS_WAITING_ROOM = 'waiting_room';
|
public const ACCESS_WAITING_ROOM = 'waiting_room';
|
||||||
|
public const ACCESS_WAITING_ROOM_ALL = 'waiting_room_all';
|
||||||
public const ACCESS_INTERNAL = 'internal';
|
public const ACCESS_INTERNAL = 'internal';
|
||||||
public const ACCESS_INTERNAL_RESTRICTED = 'internal_restricted';
|
public const ACCESS_INTERNAL_RESTRICTED = 'internal_restricted';
|
||||||
|
|
||||||
public const ACCESS = [self::ACCESS_PUBLIC, self::ACCESS_PASSWORD, self::ACCESS_WAITING_ROOM, self::ACCESS_INTERNAL, self::ACCESS_INTERNAL_RESTRICTED];
|
public const ACCESS = [self::ACCESS_PUBLIC, self::ACCESS_PASSWORD, self::ACCESS_WAITING_ROOM, self::ACCESS_WAITING_ROOM_ALL, self::ACCESS_INTERNAL, self::ACCESS_INTERNAL_RESTRICTED];
|
||||||
|
|
||||||
public $uid;
|
public $uid;
|
||||||
public $name;
|
public $name;
|
||||||
|
|
|
@ -12,6 +12,7 @@ export enum Access {
|
||||||
Public = 'public',
|
Public = 'public',
|
||||||
Password = 'password',
|
Password = 'password',
|
||||||
WaitingRoom = 'waiting_room',
|
WaitingRoom = 'waiting_room',
|
||||||
|
WaitingRoomAll = 'waiting_room_all',
|
||||||
Internal = 'internal',
|
Internal = 'internal',
|
||||||
InternalRestricted = 'internal_restricted',
|
InternalRestricted = 'internal_restricted',
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@ export const AccessOptions = {
|
||||||
[Access.Public]: t('bbb', 'Public'),
|
[Access.Public]: t('bbb', 'Public'),
|
||||||
[Access.Password]: t('bbb', 'Internal + Password protection for guests'),
|
[Access.Password]: t('bbb', 'Internal + Password protection for guests'),
|
||||||
[Access.WaitingRoom]: t('bbb', 'Internal + Waiting room for guests'),
|
[Access.WaitingRoom]: t('bbb', 'Internal + Waiting room for guests'),
|
||||||
|
[Access.WaitingRoomAll]: t('bbb', 'Waiting room for all users'),
|
||||||
[Access.Internal]: t('bbb', 'Internal'),
|
[Access.Internal]: t('bbb', 'Internal'),
|
||||||
[Access.InternalRestricted]: t('bbb', 'Internal restricted'),
|
[Access.InternalRestricted]: t('bbb', 'Internal restricted'),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue