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 #1007

Open
saadxprt opened this issue Apr 7, 2024 · 1 comment
Open

cant use startVideoRecording on Android 13 #1007

saadxprt opened this issue Apr 7, 2024 · 1 comment

Comments

@saadxprt
Copy link

saadxprt commented Apr 7, 2024

Environment

Please provide the following information about your environment:

  1. Development OS: Mac, Windows, Linux
    Windows

  2. Device OS & Version: What Android OS version (7.0, 8.0, etc.) or iOS version (11.0, 11.2) is your device running on?
    Android 13 actual device

  3. Version: ViroReact version and React Native version
    @viro-community/react-viro": "^2.41.1", "react-native": "0.72.6"

  4. Device(s): What device(s) are you are seeing the issue on (i.e. iPhone X, Samsung Note 8, etc)
    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

@netanelbi
Copy link

Did you found a solution for this ?

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