Repository navigation
Merge v3.0.26 into v4.0.x-release - #25012
Conversation
Real-time media components currently rely on participant "meshing," where all participants see and hear each other. This prevents use cases requiring asymmetric media relationships, such as proctoring, huddles, or embedded breakout rooms. While audio groups exist for audio asymmetry, cameras and screen sharing lack a similar mechanism. Extend the audio groups mechanism to support cameras and RTC content, renaming the feature to "MediaGroups." A MediaGroup is a logical unit defined by an identifier, creator ID, media type, lock status, and lists of broadcasters and viewers. Groups have the following business logic: - Broadcasters' streams are only visible to viewers of that group. - Viewers filter visible streams to show only group broadcasters. - Users can participate in multiple groups simultaneously in any capacity. - Absence of a group assignment defaults to the "public" space. - Locked groups are restricted to moderator manipulation. Expose these actions to clients via GraphQL mutations. The `recorded` attribute is included in the MediaGroup structure for future use, though its functionality is not yet implemented.
Virtual public groups are not sufficient when participants must hear/see
an union of users who are in public (i.e.: no groups) and ones that are
in specific media groups. This is by definition, since treating public
groups as the "absence of groups" makes things mutually exclusive here.
Add explicit, reserved public groups for the basic media types: audio,
camera and screenshare. All of them have static IDs
`public:${mediaType}`, and _cannot_ be destroyed nor altered in their
base structure by any user.
Users are automatically added to them at join time, and they can join/leave
those groups in any direction at any time during the meeting.
For the sake of conformity, selective subscription implementations MUST
still treat the absence of groups for an user a them being in the public
group. This preserves the previous virtual public group logic while
allowing for greater flexibility.
Enforce public media group states server-side for users on relevant triggers (group creation, destruction, user join/leave/update). This makes it easier to prevent users from being group-orphaned. Rather than having media group consumers do this, the server guarantees a clean state once users aren't part of specific media groups anymore.
…tUserMediaGroupState
The media groups API uses three separate imperative operations (join,
leave, update) to change user media group membership. Multi-group state
transitions required chaining these operations sequentially, while
ordering cannot be reliably guaranteed by neither server or clients.
This creates race conditions where users can end up in inconsistent states
across audio, video and screen sharing groups.
Replace the join/leave/update media group APIs with a single declarative
setUserMediaGroupState API. The client declares their desired media
group state with a varying degree or specificity via the `scope`
parameter.
The scope parameter can be one of:
- "merge": entries merge with existing state. Groups not listed are
untouched; sender=false + receiver=false = removal.
- "byMediaType": entries replace state per mediaType. Only media types
present in entries are affected; others are untouched.
- "all": entries replace entire state. Groups not listed are removed.
Additionally:
- fix: prevent duplicate sender/receiver references in MediaGroups model
- fix: prevent enrolling users in the same public group multiple times unnecessarily
- refactor: remove MediaGroupAddParticipants handlers
- refactor: log media group update evt, count media groups towards user activity and bail out update on replacement scopes if any group fails
By default, the `aresample` filter assumes that the timestamp of the first audio frame it sees is the start of the audio, and the output timestamps will be offset so that point becomes 0 in the output. If the seek point happened to be in a gap where there were no audio frames, this will cause the audio to be earlier than expected. Setting the `first_pts=0` option causes the filter to trim or pad the start of the output audio to preserve the correct offset relative to 0, where 0 is the seek point (set with the `-ss` option).
When inspecting test artifacts, I found an assortment of gstreamer, boost and KMS packages in them that should not be present as they're all Kurento related and should not exist in 3.0. I traced it back to the install-bbb action's "Setup local repository" step, which pulls those dependency packages from an externally-sourced tarball. I do not think any of those are necessary anymore, so this commits remove both the download and installation of the above. List of externally sourced packages: - libx264-152_0.152.2854+gite9a5903-2_amd64.deb - gstreamer1.0-nice_0.1.18-0kurento1.20.04_amd64.deb - libnice10_0.1.18-0kurento1.20.04_amd64.deb - gstreamer1.5-nice_0.1.18-0kurento1.20.04_amd64.deb - gir1.2-nice-0.1_0.1.18-0kurento1.20.04_amd64.deb - libmimic0_1.0.4-2.3_amd64.deb - openwebrtc-gst-plugins_0.10.0-1kurento1.20.04_amd64.deb - openh264-gst-plugin_1.0.0-0kurento1.20.04_amd64.deb - libssl1.0.0_1.0.2n-1ubuntu5.7_amd64.deb - openh264_1.5.0-0kurento1.20.04_amd64.deb - srtp-docs_1.6.0-0kurento1.20.04_all.deb - libsrtp0_1.6.0-0kurento1.20.04_amd64.deb - srtp-utils_1.6.0-0kurento1.20.04_amd64.deb - libboost-log1.65.1_1.65.1+dfsg-0ubuntu5_amd64.deb - libboost-filesystem1.65.1_1.65.1+dfsg-0ubuntu5_amd64.deb - libboost-regex1.65.1_1.65.1+dfsg-0ubuntu5_amd64.deb - libboost-program-options1.65.1_1.65.1+dfsg-0ubuntu5_amd64.deb - libboost-system1.65.1_1.65.1+dfsg-0ubuntu5_amd64.deb - libboost-thread1.65.1_1.65.1+dfsg-0ubuntu5_amd64.deb - libicu60_60.2-3ubuntu3.2_amd64.deb - libusrsctp_0.9.2-1kurento1.20.04_amd64.deb - gstreamer1.5-plugins-ugly_1.8.1-1kurento1.20.04_amd64.deb - libgstreamer1.5-0_1.8.1-1kurento2.20.04_amd64.deb - gstreamer1.5-tools_1.8.1-1kurento2.20.04_amd64.deb - gir1.2-gstreamer-1.5_1.8.1-1kurento2.20.04_amd64.deb - gstreamer1.5-pulseaudio_1.8.1-1kurento5.20.04_amd64.deb - gstreamer1.5-plugins-good_1.8.1-1kurento5.20.04_amd64.deb - gstreamer1.5-plugins-bad_1.8.1-1kurento5.20.04_amd64.deb - gir1.2-gst-plugins-bad-1.5_1.8.1-1kurento5.20.04_amd64.deb - openh264-gst-plugins-bad-1.5_1.8.1-1kurento5.20.04_amd64.deb - libgstreamer-plugins-bad1.5-0_1.8.1-1kurento5.20.04_amd64.deb - gir1.2-gst-plugins-base-1.5_1.8.1-1kurento2.20.04_amd64.deb - gstreamer1.5-alsa_1.8.1-1kurento2.20.04_amd64.deb - gstreamer1.5-plugins-base-apps_1.8.1-1kurento2.20.04_amd64.deb - gstreamer1.5-x_1.8.1-1kurento2.20.04_amd64.deb - gstreamer1.5-plugins-base_1.8.1-1kurento2.20.04_amd64.deb - libgstreamer-plugins-base1.5-0_1.8.1-1kurento2.20.04_amd64.deb - gstreamer1.5-libav_1.8.1-1kurento1.20.04_amd64.deb - kms-filters_6.16.0-0kurento1.20.04_amd64.deb - kmsjsoncpp_1.6.3-1kurento1.20.04_amd64.deb - kms-elements_6.16.0-0kurento1.20.04_amd64.deb - kms-core_6.16.0-0kurento1.20.04_amd64.deb - kurento-module-creator_6.16.0-0kurento1.20.04_all.deb - kms-jsonrpc_6.16.0-0kurento1.20.04_amd64.deb - kurento-media-server_6.16.0-0kurento1.20.04_amd64.deb
When there's a large timestamp gap, the ffmpeg `aresample` filter generates silent audio to fill the gap, but it enqueues the full length of the gap into the filter chain all at once, which uses a lot of memory. To work around this issue, detect long gaps in the audio files and remove the audio file from the mix for the duration of the gap. This solution requires only a single pass through each audio file to do timestamp analysis to find all the gaps, and the EDL processing does one pass through the EDL for each file with gaps - O(M×N) - which is probably as good as it gets without making the code significantly more complicated.
When inspecting test artifacts, I found an assortment of gstreamer, boost and KMS packages in them that should not be present as they're all Kurento related and should not exist in 3.0. I traced it back to the install-bbb action's "Setup local repository" step, which pulls those dependency packages from an externally-sourced tarball. I do not think any of those are necessary anymore, so this commits remove both the download and installation of the above. List of externally sourced packages: - libx264-152_0.152.2854+gite9a5903-2_amd64.deb - gstreamer1.0-nice_0.1.18-0kurento1.20.04_amd64.deb - libnice10_0.1.18-0kurento1.20.04_amd64.deb - gstreamer1.5-nice_0.1.18-0kurento1.20.04_amd64.deb - gir1.2-nice-0.1_0.1.18-0kurento1.20.04_amd64.deb - libmimic0_1.0.4-2.3_amd64.deb - openwebrtc-gst-plugins_0.10.0-1kurento1.20.04_amd64.deb - openh264-gst-plugin_1.0.0-0kurento1.20.04_amd64.deb - libssl1.0.0_1.0.2n-1ubuntu5.7_amd64.deb - openh264_1.5.0-0kurento1.20.04_amd64.deb - srtp-docs_1.6.0-0kurento1.20.04_all.deb - libsrtp0_1.6.0-0kurento1.20.04_amd64.deb - srtp-utils_1.6.0-0kurento1.20.04_amd64.deb - libboost-log1.65.1_1.65.1+dfsg-0ubuntu5_amd64.deb - libboost-filesystem1.65.1_1.65.1+dfsg-0ubuntu5_amd64.deb - libboost-regex1.65.1_1.65.1+dfsg-0ubuntu5_amd64.deb - libboost-program-options1.65.1_1.65.1+dfsg-0ubuntu5_amd64.deb - libboost-system1.65.1_1.65.1+dfsg-0ubuntu5_amd64.deb - libboost-thread1.65.1_1.65.1+dfsg-0ubuntu5_amd64.deb - libicu60_60.2-3ubuntu3.2_amd64.deb - libusrsctp_0.9.2-1kurento1.20.04_amd64.deb - gstreamer1.5-plugins-ugly_1.8.1-1kurento1.20.04_amd64.deb - libgstreamer1.5-0_1.8.1-1kurento2.20.04_amd64.deb - gstreamer1.5-tools_1.8.1-1kurento2.20.04_amd64.deb - gir1.2-gstreamer-1.5_1.8.1-1kurento2.20.04_amd64.deb - gstreamer1.5-pulseaudio_1.8.1-1kurento5.20.04_amd64.deb - gstreamer1.5-plugins-good_1.8.1-1kurento5.20.04_amd64.deb - gstreamer1.5-plugins-bad_1.8.1-1kurento5.20.04_amd64.deb - gir1.2-gst-plugins-bad-1.5_1.8.1-1kurento5.20.04_amd64.deb - openh264-gst-plugins-bad-1.5_1.8.1-1kurento5.20.04_amd64.deb - libgstreamer-plugins-bad1.5-0_1.8.1-1kurento5.20.04_amd64.deb - gir1.2-gst-plugins-base-1.5_1.8.1-1kurento2.20.04_amd64.deb - gstreamer1.5-alsa_1.8.1-1kurento2.20.04_amd64.deb - gstreamer1.5-plugins-base-apps_1.8.1-1kurento2.20.04_amd64.deb - gstreamer1.5-x_1.8.1-1kurento2.20.04_amd64.deb - gstreamer1.5-plugins-base_1.8.1-1kurento2.20.04_amd64.deb - libgstreamer-plugins-base1.5-0_1.8.1-1kurento2.20.04_amd64.deb - gstreamer1.5-libav_1.8.1-1kurento1.20.04_amd64.deb - kms-filters_6.16.0-0kurento1.20.04_amd64.deb - kmsjsoncpp_1.6.3-1kurento1.20.04_amd64.deb - kms-elements_6.16.0-0kurento1.20.04_amd64.deb - kms-core_6.16.0-0kurento1.20.04_amd64.deb - kurento-module-creator_6.16.0-0kurento1.20.04_all.deb - kms-jsonrpc_6.16.0-0kurento1.20.04_amd64.deb - kurento-media-server_6.16.0-0kurento1.20.04_amd64.deb
…feat refactor(docs): Add plugins option; split into sections
Previous code processed them separately, then mixed them. This added an extra set of temporary files, an extra generation loss if a lossy working format is used, and another place where audio sync issues can be introduced. Now that the audio processing reliably handles multiple concurrent audio tracks and audio coming/going, merge the microphone and deskshare audio EDLs to process them together.
Vorbis audio uses fixed-size packet and doesn't concatenate cleanly with the method that we're using. This can result in audio glitches during audio cuts, and might cause (very small amounts of) A/V desync in some players. Flac uses variable-sized packets and can be concatenated cleanly. The other option is wav, but flac saves quite a lot of disk space and isn't that much slower. Some tweaks have been made to the presentation recording format to ensure it only encodes the final audio to ogg vorbis once regardless of whether or not the webcam video is used.
fix(LAD): Legacy dasboard data files not working with newer version of BBB
* Ref(html5): Remove non-used settings * Restore singlePeerConnection setting * codeRabbit suggestions * Fix(html5): revert old time
…fullscreen (bigbluebutton#24746) * fix(whiteboard): prevent presenter/viewer viewed-region desync after fullscreen Currently some zoom updates can leak to server when presenter enter/leaves presentation to fullscreen (maybe other cases also). It causes viewers and recording to have zoom, while presenter still see full slide. This commit prevent transient in-between camera/zoom values to be propagated, while still syncing the correct final state when needed (mainly fit-to-width). * fix(whiteboard): read settled camera offsets inside RAF before forced zoom publish Use current camera x/y from editor.getCamera() inside the requestAnimationFrame callback when publishing fit-to-width presenter view updates. This avoids using pre-captured offsets that can become stale between camera update and RAF execution, and keeps forcedView dedupe plus zoomSlide payload aligned with the final settled camera position. --------- Co-authored-by: germanocaumo <[email protected]>
…bigbluebutton#24595) * Fix(html5): Make the cursor point respect the pointerDiameter setting * Fix PR comments * Fix positioning
* review breakout moderator actions * adjust akka checks * fix muteUser call in talking indicator
- marked recording in infinite whiteboard as supported - corrected the markdown sections - application/x-www-form-url-encoded to application/x-www-form-urlencoded - pdfToSvgTimeout, pngCreationWait, maxConversionTime added to the Removed entries
…gbluebutton#24922) * Translate en.json in it_IT 100% translated source file: 'en.json' on 'it_IT'. * Translate en.json in zh_TW 100% translated source file: 'en.json' on 'zh_TW'. * Translate en.json in pl_PL 100% translated source file: 'en.json' on 'pl_PL'. * Translate en.json in de 100% translated source file: 'en.json' on 'de'. * Translate en.json in de 100% translated source file: 'en.json' on 'de'. * Translate en.json in ja 100% translated source file: 'en.json' on 'ja'. * Translate en.json in et 100% translated source file: 'en.json' on 'et'. * Translate en.json in ja 100% translated source file: 'en.json' on 'ja'. --------- Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
* Update dev-guide.md * Apply suggestion from @gustavotrott Co-authored-by: Gustavo Trott <[email protected]> --------- Co-authored-by: Anton Georgiev <[email protected]> Co-authored-by: Gustavo Trott <[email protected]>
bigbluebutton#24969) - Exclude AUDIO_ONLY streams from getStreamsToConnectAndDisconnect so they are not subscribed as cameras in bbb-webrtc-sfu - Skip rendering plugin camera helper buttons (e.g. popout) for AUDIO_ONLY stream tiles Co-authored-by: AtilaU19 <[email protected]>
…entations (bigbluebutton#24971) Previously, `uploadDocuments()` was called before `respondWithConference()` inside the `/create` handler. When the request includes a pre-uploaded presentation URL (the common case for Moodle and LTI integrations), `uploadDocuments()` synchronously downloads the file via `PresentationUrlDownloadService.savePresentation()` before returning. This download blocks the HTTP thread, delaying the XML response to the LMS by however long the download takes. The fix swaps the call order: `respondWithConference()` is called first, then `uploadDocuments()` continues on the same thread. The meeting is already fully created and running at this point (createMeeting() has returned successfully), so the LMS receives a valid SUCCESS response immediately. This does not break error handling because: - The return value of `uploadDocuments()` was already ignored at the call site before this change. - `respondWithConference()` always responds with SUCCESS (null msgKey/msg); upload failures are never surfaced to the LMS HTTP response — they are communicated only as internal events to meeting room clients. - The only `invalid()` call inside `downloadAndProcessDocument()` is inside a `catch (UnsupportedEncodingException)` block for `URLDecoder.decode(..., "UTF-8")`, which is unreachable on any JVM since UTF-8 is always available. After this change, the `/create` API response time is determined solely by meeting creation and plugin manifest fetching, regardless of the size or download speed of the pre-uploaded presentation. Co-authored-by: germanocaumo <[email protected]>
…tton#24970) In deskshare audio specifically, it's fairly common for the audio stream to stop before the video stream does, leaving a "gap" between the end of the audio stream and the end of the media file as a whole. Seeking into this gap breaks the audio processing, resulting in a hanging ffmpeg process. Since the audio file gap handling code is already inspecting all of the timestamps, it's easy for it to detect this sort of "gap" at the end of the file, and mark it as a gap to be removed from the EDL, which solves the seek problem.
…everses keyboard tab order
… poluting the toolbar with too much options
…to highlight that tool is about colors (what was not clear before)
* Update BBB web dependencies * Upgrade more dependencies * Update tike dependency
(WIP)iteration: BigBlueButton 3.0.26
|
Important Review skippedToo many files! This PR contains 294 files, which is 144 over the limit of 150. ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (6)
📒 Files selected for processing (294)
You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| bbb-shared-notes-server.service | ||
| before-remove.sh | ||
| build.sh | ||
| opts-jammy.sh |
There was a problem hiding this comment.
I'll send a PR once we merge this -- will deal with bbb-shared-notes-server and all the jammy mentions. Don't worry about trying to adjust them now.
There was a problem hiding this comment.
Well, looks like we can't finish the CI run without these changes so I'll check if I can push them here.
|
🚨 Automated tests failed |
antobinary
left a comment
There was a problem hiding this comment.
I checked the failing tests and don't believe any of them are due to the PR changes.
2ed62ed
into
bigbluebutton:v4.0.x-release




What does this PR do?
Merges tag v3.0.26 into v4.0.x-release
v3.0 head: 0238976
v4.0 head: 1482728