Skip to content

fix(recording): restore presentation panzoom after screenshare stops - #25992

Merged
ramonlsouza merged 2 commits into
bigbluebutton:v3.0.x-developfrom
Tainan404:fix/25920-panzoom-30
Oct 8, 2026
Merged

ramonlsouza merged 2 commits into
bigbluebutton:v3.0.x-developfrom
Tainan404:fix/25920-panzoom-30

Conversation

@Tainan404

Copy link
Copy Markdown
Member

What does this PR do?

Ports the complete presentation playback panzoom fix to v3.0.x-develop:

  • Panzoom boundary entries on screenshare start, stop, and screenshare-as-content changes.
  • Same presentation keeps its zoom after screenshare; a different presentation resets to 100%, matching the live meeting.

Closes #25920

Motivation

Same defect as in 4.0: after a screenshare stopped, playback kept the screenshare viewBox, clipping portrait slides, and a presentation selected during screenshare inherited the previous deck's zoom and offsets.

How to test

  • Offline replay of real recordings on the ported publisher: scenario 1 keeps 100 50 960 540, scenario 2 resets to 0 0 595 841, toggle boundaries correct, no-screenshare output byte-identical to target.
  • This line predates the modern e2e helpers, so validation is replay-only (no live e2e executed on 3.0).
  • Videos and raw replay evidence are linked in fix(recording): restore presentation panzoom after screenshare stops #25991 (same fix on 4.0).

More

  • Added/updated documentation

@coderabbitai

coderabbitai Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Caution

Review failed

Failed to post review comments.

GitHub was unavailable or timed out while CodeRabbit was posting the review. Please request a new review later if the pull request still needs one. This happened while posting 2 inline comments. Use @coderabbitai full review to retry the review.

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 61b96204-b712-4da7-ae2a-e86a1778a741
📥 Commits

Reviewing files that changed from the base of the PR and between d42058a and 1cf9a8a.

📒 Files selected for processing (1)
  • record-and-playback/presentation/scripts/publish/presentation.rb

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.

⏰ Context from checks skipped due to timeout. (14)
  • GitHub Check: build-package (bbb-webrtc)
  • GitHub Check: build-package (bbb-config)
  • GitHub Check: build-package (bbb-fsesl-akka)
  • GitHub Check: build-package (bbb-export-annotations)
  • GitHub Check: build-package (bbb-html5)
  • GitHub Check: build-package (bbb-etherpad)
  • GitHub Check: build-package (bbb-shared-notes-server)
  • GitHub Check: build-package (bbb-learning-dashboard)
  • GitHub Check: build-package (bbb-playback-record)
  • GitHub Check: build-package (bbb-web)
  • GitHub Check: build-package (bbb-freeswitch)
  • GitHub Check: build-package (bbb-apps-akka)
  • GitHub Check: build-package (others)
  • GitHub Check: build-package (bbb-graphql-server)
🧰 Additional context used
🪛 RuboCop (1.91.0)
record-and-playback/presentation/scripts/publish/presentation.rb

[convention] 1068-1068: Line is too long. [165/128]

(Layout/LineLength)

Walkthrough

The publisher now uses configured deskshare output dimensions when image dimensions are incomplete. It tracks slide dimensions with pan/zoom offsets, scales tldraw offsets against current slide dimensions, and resets pan/zoom state when switching between nonempty presentations. Deskshare start and stop events, and screenshare content-layout changes, now trigger pan/zoom finalization.

Priority: ➖ Normal

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix · Severity of issue fixed: Medium

Suggested reviewers: germanocaumo

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately identifies the main panzoom restoration issue after screenshare stops. It does not mention every related transition, but it clearly describes a primary change.
Description check ✅ Passed The description directly explains the panzoom changes, screenshare transitions, presentation reset behavior, motivation, and replay validation.
Linked Issues check ✅ Passed Issue [#25920] requires panzoom updates in DeskshareStartedEvent, DeskshareStoppedEvent, and SetScreenshareAsContentEvent. The diff sets slide_changed = panzoom_changed = true in all three han…
Out of Scope Changes check ✅ Passed The changes remain within the presentation playback panzoom fix described by the PR and issue [#25920]. Deskshare dimension fallback supports valid panzoom boundaries. Presentation reset and tldraw of…
  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ramonlsouza ramonlsouza added this to the Release 3.0 milestone Oct 8, 2026
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown

✅ Automated tests have passed!

@ramonlsouza
ramonlsouza merged commit 21beb07 into bigbluebutton:v3.0.x-develop Oct 8, 2026
51 of 52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update panzoom when the displayed screenshare state changes.

3 participants