ReactVision / viro

ViroReact: The AR and VR library for React Native πŸ“³πŸ’™πŸ’›πŸ€πŸ’š
MIT License
1.41k stars 164 forks source link

cant use startVideoRecording on Android 13 #284

Open saadxprt opened 8 months ago

saadxprt commented 8 months ago

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

linear[bot] commented 8 months ago

XR-193 cant use startVideoRecording on Android 13

tjikaljedy commented 5 months ago

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