Repository navigation
feat(screnshare): add ParticipantStatusChange event for screen sharing, + - #23326
Conversation
Screen sharing only generates RAP events during capture.
For meetings with record=false or recordFullDurationMedia=false, screen sharing
sessions are not registered in Redis/events.xml if they occur outside the
capture window.
It has been requested that broadcast events should be registered as well
for analytics purposes - irrespective or capture status.
Add ParticipantStatusChange events on screenshare broadcast start/stop.
The event payload follow the same pattern as the existing ones for
cameras:
- status: `hasScreenShare`
- value: `${true|false},stream=${streamId}`
v2.19.0-beta.1 --- * feat(livekit): token gen for breakout audio-only transfers * feat(screenshare): add userId to screenshare RPCs
WalkthroughThis set of changes introduces a Sequence Diagram(s)sequenceDiagram
participant User
participant ScreenshareApp
participant ScreenshareModel
participant MsgBuilder
participant EventHandler
participant RedisRecorder
User->>ScreenshareApp: Initiate screenshare (with userId)
ScreenshareApp->>ScreenshareModel: setUserId(userId)
ScreenshareApp->>MsgBuilder: buildStartScreenshareMsg(..., userId)
MsgBuilder->>EventHandler: ScreenshareRtmpBroadcastStartedEvtMsg(..., userId)
EventHandler->>RedisRecorder: handleScreenshareRtmpBroadcastStartedEvtMsg(..., userId)
RedisRecorder->>RedisRecorder: handleUserStatusChange("hasScreenShare", "true,stream=...")
User->>ScreenshareApp: Stop screenshare
ScreenshareApp->>ScreenshareModel: getUserId()
ScreenshareApp->>MsgBuilder: buildStopScreenshareMsg(..., userId)
MsgBuilder->>EventHandler: ScreenshareRtmpBroadcastStoppedEvtMsg(..., userId)
EventHandler->>RedisRecorder: handleScreenshareRtmpBroadcastStoppedEvtMsg(..., userId)
RedisRecorder->>RedisRecorder: handleUserStatusChange("hasScreenShare", "false,stream=...")
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (8)
🧰 Additional context used🧬 Code Graph Analysis (1)akka-bbb-apps/src/main/scala/org/bigbluebutton/core2/message/senders/MsgBuilder.scala (1)
⏰ Context from checks skipped due to timeout of 90000ms (9)
🔇 Additional comments (25)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
Automated tests Summary✅ All the CI tests have passed! |
The ParticipantStatusChange event was recently extended to support screen sharing - see b24d5a8, bigbluebutton#23326 for rationale and implementation details. Bump record-and-playback's version to `3.0.9` so we can identify in which recordings those new events are present.



What does this PR do?
For meetings with record=false or recordFullDurationMedia=false, screen sharing
sessions are not registered in Redis/events.xml if they occur outside the
capture window.
for analytics purposes - irrespective of capture status.
The event payload follows the same pattern as the existing ones for
cameras:
hasScreenShare${true|false},stream=${streamId}Closes Issue(s)
#23325