react-native-compressor
react-native-compressor copied to clipboard
An error has occurred! [Android]
Current behavior
it works in iOS.
Expected behavior
While trying to Call Video.compress it hit An error has occurred! (Android) Only.
Platform
- Android
React Native Version
0.66.3
React Native Compressor Version
1.8.24
Reproducible Steps And Demo
try {
const destPath = ${RNFS.TemporaryDirectoryPath}/${ '' + new Date().getTime() };
await RNFS.copyFile(uri, destPath);
uri = await Video.compress(
destPath,
{
},
(progress) => {
console.log('Compression Progress: ', progress);
},
);
} catch (error) {
console.log('error_>scomre', error);
Alert.alert(
'something went wrong',
JSON.stringify(error),
);
}
@numandev1