-
Notifications
You must be signed in to change notification settings - Fork 485
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
Can I capture photo with Viro AR? #75
Comments
Yes, you can record and capture photos/video with AR and save them. See the async takeScreenshot and startVideoRecording methods here -> http://docs.viromedia.com/docs/viroarscenenavigator#methods |
FYI to anyone that comes across this issue while trying to get screenshots/video recording to work, you cannot call Examle ViroARSceneNavigator component with Ref:
This will NOT work:
This WILL work:
.. and so will this (these how the functions are named in
@dam00n Point 1 in the documentation at https://docs.viromedia.com/docs/viroarscenenavigator#methods suggests that these methods are accessible directly from the
Which is incorrect for these three functions. Perhaps the docs should be updated as per the findings above, or the underlying implementation fixed to be able to access these functions directly from a |
@se1exin , Thanks for catching and reporting this! I have updated our docs to reflect this. Devs can access these methods (and others) via the SceneNavigator as |
i am using |
Hi @Noor0, are you developing with our Testbed App or with Android Studio? if you are developing and running your app with Android Studio make sure your manifest file has the proper permissions such as:
Further, check the onError callback from the startVideoRecording() method to see what error you are getting if any. For the stopVideoRecording() method check if the success flag is true, if it's not then check the errorCode returned to see what that is. That will help to at least to diagnose an error. |
I was playing around with the default generated code of viro cli, i was using Testbed App and i had updated my so i took the ref of the
This worked for me
|
Take a look at the Figment AR source code -> https://github.com/viromedia/figment-ar This app includes both photo and video functionality |
On API level 33, permissions WRITE_EXTERNAL_STORAGE is already granted on app directory by default. But the result of function |
The same for me! Has anyone solved it? |
The same for me, anyone solved and can help ? |
Ended up using react-native-view-show
|
How come this work ?
How come this work ? I actually need the recording capabilities so I can't use something else. Can we record the scene with a different module or plugin ? |
Unfortunately, I haven't found yet the solution for recording capabilities.
|
i found that there is a pull request on viro-core that should fix this permission issue. it seems that the plugin itself returns false for the permissions even though it doesnt have to ask for them |
Hello, I'm trying to record video on android 14 and I'm having the same error code 1 (permissions issue), any way around it? |
I've just skimmed through documents and got a question.
Can I record or capture photo/video with AR and save them?
The text was updated successfully, but these errors were encountered: