From 093e286e0f1acf0d12c2a5e0ac190d58ba92fffb Mon Sep 17 00:00:00 2001 From: brtbr Date: Sun, 2 Jun 2024 18:12:51 +0200 Subject: [PATCH] fix: add new hide_presentation_on_join flag As of BBB 2.6 the userdata flag for hiding the presentation has changed. This commit adds the new `bbb_hide_presentation_on_join` flag when a clean layout is selected. In order to keep backwards compatability for BBB 2.5 and lower we can send both flags and remove the deprecated one later on. --- lib/BigBlueButton/API.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/BigBlueButton/API.php b/lib/BigBlueButton/API.php index 2176ca3..d52c49f 100644 --- a/lib/BigBlueButton/API.php +++ b/lib/BigBlueButton/API.php @@ -117,7 +117,8 @@ class API { $joinMeetingParams->addUserData('bbb_skip_video_preview_on_first_join', !$room->getMediaCheck()); // 2.3 if ($room->getCleanLayout()) { - $joinMeetingParams->addUserData('bbb_auto_swap_layout', true); + $joinMeetingParams->addUserData('bbb_auto_swap_layout', true); // 2.5 and below // ToDo: remove in the future + $joinMeetingParams->addUserData('bbb_hide_presentation_on_join', true); // 2.6 and up $joinMeetingParams->addUserData('bbb_show_participants_on_login', false); $joinMeetingParams->addUserData('bbb_show_public_chat_on_login', false); }