Repository navigation
Share one screen sharing product profile between the host and the bench (851-3593) - #894
Merged
pondorasti merged 1 commit intoOct 29, 2026
Conversation
…ch (851-3593) ScreenSharingProductProfile (ScreenSharingWebRTC) now holds the product settings that the host service, the codec factory, the field trials, the peer defaults and the adaptive quality loop read: codec order, the 45 Mbit/s ceiling, the 2560x1440 capture box, the WebRTC field trials, the keyframe interval, the encoder's pending-frame bound and the quality loop's reference bitrate and warm-up. The quality loop moves from CodevisorCoreMac into ScreenSharingWebRTC so the Tier 1 bench can run it too. Values are unchanged. ScreenSharingProductProfileTests streams a frame through a product sender and checks the codec, pending frames, keyframe interval and bitrate ceiling the encoder and sender actually use. It passed on main before the refactor and passes after it. The capture-size test moves from CodevisorCoreMacTests to the profile. Part of 851-3593 Co-Authored-By: Claude Opus 5.5 <[email protected]>
pondorasti
deleted the
alexandru/851-3593-screen-sharing-v2-t4-tier-1-in-process-loopback-benchmark-profile
branch
October 29, 2026 03:07
This was referenced Oct 29, 2026
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.
Part of 851-3593
Summary
Adds
ScreenSharingProductProfile(inScreenSharingWebRTC): one place for the product's screen sharing settings, so the product and the Tier 1 benchmark (next PR) can't drift apart.ScreenSharingHostService/ScreenSharingHostSession,ScreenSharingCodecFactory,ScreenSharingFieldTrials,ScreenSharingPeerOptionsand the quality loop now read these values instead of their own constants.ScreenSharingQualityLoopmoves fromCodevisorCoreMactoScreenSharingWebRTC(public, logic unchanged), so the bench can run it too. The simulator host keeps using it as before.No values change, and nothing changes for the product's performance.
Proof that behaviour is unchanged
ScreenSharingProductProfileTests.aProductSenderStreamsWithTheProductSettingsstreams a frame through a default product sender and receiver, then checks what the encoder and sender actually used:encoderMaximumPendingFrames= 3;encoderKeyframeIntervalSeconds= 60;maxBitrateBps= 45,000,000.I wrote it first against unmodified
main, where it passed (1.8 s). It still passes after the refactor. The field trials and the default codec order are already pinned byScreenSharingFieldTrialsTestsandScreenSharingCodecFactoryTests. The capture-size test moves fromCodevisorCoreMacTeststo the profile and now also checks the bitrate and frame rate.Checks
swift testforScreenSharingProductProfileTests,ScreenSharingFieldTrialsTests,ScreenSharingPeerLoopbackTests,ScreenSharingCodecFactoryTestsandScreenSharingHDRLoopbackTests: 30 passed.bun run checkpassed: Swift tests, the iOS build, format and lint.code-reviewat level high. I fixed the long lines and removed assertions that duplicated other tests. I'm leaving three findings as they are:ScreenSharingcore module: the profile includes the WebRTC field trials, so it belongs inScreenSharingWebRTC.No tophat assets: there is no UI change.
🤖 Generated with Claude Code