Repository navigation
Diagnostics for the screen-share black flash - #291
Open
iamfatness wants to merge 1 commit into
Open
iamfatness wants to merge 1 commit into
iamfatness wants to merge 1 commit into
Conversation
Field reports (Mac and Windows, v0.1.49): Screen Share sources go black and the image returns about once a second. A live repro on 2026-11-14 with a plain desktop share showed no dark frames anywhere, so this adds the instrumentation that locates the black on the next occurrence: - src/share-frame-diag.h: one dark-frame classifier, host-tested. - Engine (Windows and macOS): share_frame_dark/_dark_end, share_frame_gap (>=1 s between SDK frames), share_frame_format. - Plugin: Share dark frame published / run ended, Share frame size, for ScreenShare sources only. Diagnostics only; no behaviour change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| void ZoomSource::log_share_frame_diag(uint32_t src_w, uint32_t src_h, | ||
| const uint8_t *obs_y, uint32_t obs_w, | ||
| uint32_t obs_h, uint32_t obs_stride, | ||
| uint64_t now_ns, uint32_t participant, |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Field reports from one Mac and one Windows operator (v0.1.49): a Screen Share source goes black, and the image comes back about once a second. When the shared screen is still, Zoom drops share delivery to about 1 fps, so the black sits between frames.
Live repro attempt (2026-11-14, Windows, this build): a plain desktop share reached OBS cleanly at 1920x1080 and 1–11 fps. There were no dark frames from the SDK or from the plugin, and none in 35,083 OBS source screenshots, across scene switches, hide/show, forced recovery and Retry Media ×2. The trigger appears to be specific to the sharer, so this PR adds instrumentation that locates the black on the next occurrence. Diagnostics only; no behaviour change.
src/share-frame-diag.h: one dark-frame classifier shared by both sides, with a host test (CoreVideoShareFrameDiag).engine-share.cpp, macOSshare_on_frame):share_frame_dark/_dark_end,share_frame_gap(≥1 s between SDK frames),share_frame_format(size or limited-range change).Share dark frame published/run endedandShare frame size, for ScreenShare sources only.How to read a bundle: dark in the engine means Zoom delivered it. Dark only in the plugin means our code introduced it. Neither, while the operator sees black, means it's in OBS rendering.
Also measured: share frames arrive limited range, and the share path doesn't expand them the way the camera path does. That washes a share out rather than blackening it; it's noted in CLAUDE.md as a separate fix.
Tested: local Windows Release build, ctest 86/86. The macOS engine change compiles only in CI here.
🤖 Generated with Claude Code