Repository navigation
update(recording): add LayoutBroadcastedRecordEvent to events.xml - #24254
antobinary merged 2 commits into
Conversation
Adds the info about layout when presenter changes something with push layout enabled (BroadcastLayoutEvtMsg):
<event timestamp="677408846" module="PARTICIPANT" eventname="LayoutBroadcastedEvent">
<focusedCamera>none</focusedCamera>
<presentationVideoRate>0.0</presentationVideoRate>
<cameraPosition>contentTop</cameraPosition>
<presentationIsOpen>false</presentationIsOpen>
<layout>CUSTOM_LAYOUT</layout>
<timestampUTC>1763562184363</timestampUTC>
<date>2025-11-19T11:23:04.363-03</date>
<isResizing>false</isResizing>
</event>
WalkthroughThis change adds recording support for layout broadcast events. A new Scala event class, LayoutBroadcastedRecordEvent, was introduced with setters for layout, presentationIsOpen, isResizing, cameraPosition, focusedCamera, and presentationVideoRate, and associated key constants in its companion object. RedisRecorderActor was extended to handle BroadcastLayoutEvtMsg by adding a dispatch case and a private handler handleBroadcastLayoutEvtMsg that builds and populates a LayoutBroadcastedRecordEvent from the message body and records it using the meetingId from the message header. Sequence DiagramsequenceDiagram
participant Sender
participant RedisRecorderActor
participant LayoutBroadcastedRecordEvent
participant RecordingMechanism
Sender->>RedisRecorderActor: BroadcastLayoutEvtMsg
activate RedisRecorderActor
RedisRecorderActor->>RedisRecorderActor: match BroadcastLayoutEvtMsg
RedisRecorderActor->>LayoutBroadcastedRecordEvent: create event
activate LayoutBroadcastedRecordEvent
RedisRecorderActor->>LayoutBroadcastedRecordEvent: setLayout(...)
RedisRecorderActor->>LayoutBroadcastedRecordEvent: setPresentationIsOpen(...)
RedisRecorderActor->>LayoutBroadcastedRecordEvent: setIsResizing(...)
RedisRecorderActor->>LayoutBroadcastedRecordEvent: setCameraPosition(...)
RedisRecorderActor->>LayoutBroadcastedRecordEvent: setFocusedCamera(...)
RedisRecorderActor->>LayoutBroadcastedRecordEvent: setPresentationVideoRate(...)
deactivate LayoutBroadcastedRecordEvent
RedisRecorderActor->>RecordingMechanism: record(event, meetingId)
deactivate RedisRecorderActor
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
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 |
|
I understand the |
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/record/events/LayoutBroadcastedRecordEvent.scala(1 hunks)akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/RedisRecorderActor.scala(2 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2024-10-10T12:15:03.265Z
Learnt from: jaapjansma
Repo: bigbluebutton/bigbluebutton PR: 21204
File: bbb-common-web/src/main/scala/org/bigbluebutton/api2/meeting/MeetingsManagerActor.scala:21-21
Timestamp: 2024-10-10T12:15:03.265Z
Learning: When reviewing code changes in BigBlueButton, particularly in case classes like `RegisterUser` in `MeetingsManagerActor.scala`, ensure to accurately distinguish between added parameters and replaced parameters to avoid incorrect assessments.
Applied to files:
akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/RedisRecorderActor.scala
🧬 Code graph analysis (2)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/record/events/LayoutBroadcastedRecordEvent.scala (1)
akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/RedisRecorderActor.scala (1)
record(48-50)
akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/RedisRecorderActor.scala (1)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/record/events/LayoutBroadcastedRecordEvent.scala (6)
setLayout(27-29)setPresentationIsOpen(31-33)setIsResizing(35-37)setCameraPosition(39-41)setFocusedCamera(43-45)setPresentationVideoRate(47-49)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: build-package (bbb-apps-akka)
🔇 Additional comments (2)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/record/events/LayoutBroadcastedRecordEvent.scala (1)
22-60: LGTM! Clean implementation of the layout broadcast event class.The event class is well-structured with appropriate setter methods and companion object constants. All type conversions (Boolean and Double to String) are handled correctly, and the event name matches the expected XML output shown in the PR description.
akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/RedisRecorderActor.scala (1)
129-129: LGTM! Dispatch case properly added.The
BroadcastLayoutEvtMsgcase is correctly positioned in the pattern matching block alongside other meeting-related event handlers.
|
Please update |
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
|
Automated tests Summary🚨 Test workflow has failedClick here to check the action test reports (to view the report locally, see the docs) |



What does this PR do?
Adds the info about layout when presenter changes something with push layout enabled (BroadcastLayoutEvtMsg):
Motivation
No info in recording scripts about presentation global state during meeting.
How to test