Repository navigation
Add simulator movie recording and on-demand host capture - #9
Merged
Merged
Conversation
dautovri
approved these changes
Oct 20, 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.
Evidence
Synthetic preview-layer output and decoded recorded frames were generated and inspected locally. The labeled four-corner fixture remained upright for the normal portrait request, and all eight rotation/mirroring cases passed.
Screenshot attachment upload was blocked by GitHub CLI's requirement for write access to the upstream repository. The images can be reproduced with
SimulatorInjection/Tests/run-orientation-probe.shas documented in the test README.Summary
AI-generated reference: This entire PR—including the implementation, tests, and this write-up—was generated with Astra. I haven't independently reviewed the code quality. Please treat it as a reference implementation to evaluate or adapt, rather than a human-reviewed endorsement of the implementation.
This lets a Simulator app record and replay webcam video with microphone audio through its existing
AVCaptureMovieFileOutputcalls.Verification
Agent-run checks on Apple Silicon, macOS 26.6.2, Xcode 26.5, iOS Simulator 26.5:
bash SimulatorInjection/Tests/run-probe.sh "$DEVICE"— 14 scenarios passed, with decoded audio/video checks.bash SimulatorInjection/Tests/run-orientation-probe.sh "$DEVICE" "$EVIDENCE"— all 8 rotation/mirroring cases passed for preview pixels and decoded movie frames.xcodebuild -project SimulatorCamera.xcodeproj -scheme SimulatorCamera -destination 'platform=macOS' -derivedDataPath build/MacTests -only-testing:SimulatorCameraTests CODE_SIGNING_ALLOWED=NO test— 20 existing tests passed.git diff --checkpassed.Reproduction details:
SimulatorInjection/Tests/README.md. The microphone bridge example uses an existing BlackHole route and requires matching host devices/permissions.Limitations: precise physical lip-sync and perceptual audio quality were not evaluated; x86_64 was compiled but not runtime-tested. Signed companion-app/system-extension activation was not verified because of the local signing/provisioning setup.
swiftformatandswiftlintwere unavailable on this machine. These checks are agent-run evidence, not an independent human code-quality review.