cant use startVideoRecording on Android 13
saadxprt opened this issue · 2 comments
saadxprt commented
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
tjikaljedy commented
i face same problem. i was looked to source code, its refer to native module