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

cant use startVideoRecording on Android 13 #284

Open
saadxprt opened this issue Mar 18, 2024 · 2 comments
Open

cant use startVideoRecording on Android 13 #284

saadxprt opened this issue Mar 18, 2024 · 2 comments

Comments

@saadxprt
Copy link

saadxprt commented Mar 18, 2024

environment:

Windows
Android 13 actual device
@viro-community/react-viro": "^2.41.1", "react-native": "0.72.6",
Infinix Zero 30

`const handlePressRecordVideo = async () => {
    if (recording) {
      try {
        const result = await ref.current?._stopVideoRecording();
        setRecording(false);
        console.log("[254]", result);
      } catch (e) {
        console.error("[254]", e);
      }
    } else {
      try {
        setRecording(true);
        const result = await ref.current?._startVideoRecording(
          "test",
          true,
          (e) => {
            // https://viro-community.readme.io/docs/viroconstants#section-video-recording-screenshot-errors
            console.error("[254]", e);
          }
        );
        console.log("[254]", result);
      } catch (e) {
        console.error("[254]", e);
      }
    }
  };`

it returns {"errorCode": 1, "success": false, "url": null}

This is working fine with android 12 with these permissions

await request('android.permission.WRITE_EXTERNAL_STORAGE');
what do I need to do in order to make this _startVideoRecording work with Android 13? or just store the recording anywhere on the phone which I can access

Copy link

linear bot commented Mar 18, 2024

@tjikaljedy
Copy link

i face same problem. i was looked to source code, its refer to native module

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

2 participants