Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create a custom camera #228

Merged
merged 14 commits into from
Oct 11, 2024
Merged

Conversation

ice-alcides
Copy link
Contributor

@ice-alcides ice-alcides commented Oct 11, 2024

Key Changes

Context

  • First PR in Stories Flow: This is the initial pull request in a series that will implement the complete Stories feature.
  • Foundation for Future Work: The components and structure introduced here will serve as the foundation for subsequent PRs in this feature implementation.

1. StoryCameraController for Camera State Management

  • Developed a StoryCameraController provider to manage video recording and flash operations.
  • Implemented automatic gallery saving for recorded videos.

2. useRecordingController Hook

  • Created a custom hook to manage recording state and progress.
  • Implemented automatic recording stop at maximum duration.

3. Camera UI Components

  • Added IdleCameraPreview for non-recording states, including control buttons for various camera actions.
  • Developed StoryCameraPreview for aspect-ratio-adjusted camera preview.

4. Recording Interaction

  • Introduced CaptureButton with a long-press gesture for intuitive video recording.
  • Implemented CircularRecordingIndicator for visual feedback during recording.

TODO

  • Implement app lifecycle state management to handle app backgrounding during recording properly.
  • Implement gallery opening functionality

@ice-alcides ice-alcides requested review from a team as code owners October 11, 2024 08:02
@ice-alcides ice-alcides force-pushed the feature/create-story-custom-camera branch from 4298737 to ac838fb Compare October 11, 2024 08:05
@ice-alcides ice-alcides self-assigned this Oct 11, 2024
ice-tychon
ice-tychon previously approved these changes Oct 11, 2024
@ice-alcides ice-alcides force-pushed the feature/create-story-custom-camera branch from 9f805fe to efd66c8 Compare October 11, 2024 11:44
@ice-alcides ice-alcides enabled auto-merge (squash) October 11, 2024 11:45
@ice-alcides ice-alcides merged commit a1fadad into master Oct 11, 2024
1 check passed
@ice-alcides ice-alcides deleted the feature/create-story-custom-camera branch October 11, 2024 12:47
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.

4 participants