shahen94 / react-native-video-processing

Native Video editing/trimming/compressing :movie_camera: library for React-Native
https://shahen94.github.io/react-native-video-processing/
MIT License
1.25k stars 326 forks source link

Invalid format #278

Closed lucastonon closed 4 years ago

lucastonon commented 4 years ago

Guys, I am trying to use ProcessingManager.getPreviewForSecond() and it works fine on Android but on iOS I get the following error: 'Failed format. Expected one of 'base64' or 'JPEG'

Any ideas?

lucastonon commented 4 years ago

The example didn't require a format to be passed, and it worked without it on Android. But iOS required the format to be passed. ProcessingManager.getPreviewForSecond(videoUri, 1, maximumSize, 'base64')