[codex] Show initial frame while live preview starts#189
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ce81a6577b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
Why
Live preview can remain black until enough stream data arrives for AVFoundation to make the first video frame displayable. Showing a fresh screenshot bridges that startup gap without changing persisted capture media.
Impact
Starting or retrying live preview now shows the device immediately, then hands off to the live stream once a real frame is ready. Screenshot failure remains non-fatal and falls back to the existing black surface.
Validation
xcodebuild -quiet -project Snap-O.xcodeproj -scheme Snap-O CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO buildswiftlint lint --strict --no-cache --config .swiftlint.yml Snap-O/LivePreview/LivePreviewSession.swift Snap-O/LivePreview/LivePreviewView.swift