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

Camera library for async sharings #2842

Open
jmpas opened this issue May 24, 2023 · 4 comments
Open

Camera library for async sharings #2842

jmpas opened this issue May 24, 2023 · 4 comments

Comments

@jmpas
Copy link
Member

jmpas commented May 24, 2023

Camera library

We've a feature already on our product roadmap which plans to enable users to record themselves doing a sharing, the use-cases for that vary, initially we've in mind async sharings and personal sharings to keep it to yourself (probably accessible through "your Journey" and only stored locally on your device)

In order for us to enable that we need a to implement a video&audio recording setup.

I will use this issue to post my findings and observations on different libraries that I'm experimenting with.

@jmpas
Copy link
Member Author

jmpas commented May 24, 2023

react-native-vision-camera

Proof of concept #2857 🚧

I'm playing with react-native-vision-camera at the moment.

I'll list some observations on this specific comment about that library and link it to a PR in the future with some code.

Relevant guides

Recording videos - the Video seems to be stored in a temp space according to this doc then I would assume we can use another API to save the file/upload it somewhere

Observations



@jmpas
Copy link
Member Author

jmpas commented May 24, 2023

react-native-camera-kit

Starting to look at react-native-camera-kit

Observations

  • Typescript ✅
  • No video support? 😞



@jmpas
Copy link
Member Author

jmpas commented May 25, 2023

expo-camera

Proof of concept #2862 🚧

Starting to look at expo-camera

Observations

  • Typescript ✅
  • Super popular / widely used
  • Very good docs
  • Seem to work great if we'd manage to fix the current error when recording 😢
    [Error: Call to function 'ExponentCamera.record' has been rejected. → Caused by: Module 'expo.modules.interfaces.filesystem.AppDirectories' not found. Are you sure all modules are linked correctly?]
    As a result of the recordAsync function call
  • MIT License



@jmpas
Copy link
Member Author

jmpas commented May 25, 2023

Worth mentioning NPM search rank criteria

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

No branches or pull requests

1 participant