The following code works fine on Android simulators but does not work only on real Android devices.
On emulators, it starts compressing and show the Compression Progress and successfully compress videos.
However, it finishes immediately on real Android devices and the result file is only 28 bytes.
The variables filePath is like file:///data/user/0/com.myapp.app/cache/rn_image_picker_lib_temp_e6b2c4f4.mp4 and result is like file:///data/user/0/com.myapp.app/cache/bad8a788-36e0-41fc-983b-a6fc340e29ff.mp4 both on emulators and real devices.
The following code works fine on Android simulators but does not work only on real Android devices. On emulators, it starts compressing and show the Compression Progress and successfully compress videos. However, it finishes immediately on real Android devices and the result file is only 28 bytes.
The variables filePath is like
file:///data/user/0/com.myapp.app/cache/rn_image_picker_lib_temp_e6b2c4f4.mp4
and result is likefile:///data/user/0/com.myapp.app/cache/bad8a788-36e0-41fc-983b-a6fc340e29ff.mp4
both on emulators and real devices.Does anyone have any ideas on fixing this issue?