Open jacoblee44 opened 2 weeks ago
@jacoblee44 your issue happens from here:
int timeInMilliseconds = (int) statistics.getTime();
Same issue happening with me. When I try to save the video after trimming it shows the trimming video...
dialog and gets stuck. On console log the event, I am getting Command failed with state COMPLETED and rc 1.null
error.
Can someone please help me out here. Thanks!
@prachipatel01 I pinned an issue about that
Hello. I am developing react native and I am using react-native-video-trim. When I open editing ui and save edited video, app is crashed and closed.
=========================================================== pid: 16510, tid: 16575, name: Thread-2
Abort message: 'JNI DETECTED ERROR IN APPLICATION: JNI NewByteArray called with pending exception java.lang.NoSuchMethodError: No virtual method getTime()I in class Lcom/arthenica/ffmpegkit/Statistics; or its super classes (declaration of 'com.arthenica.ffmpegkit.Statistics' appears in /data/app/~~-sGsvkHRgT4RY2x2B4uopA==/com.shinlee.showplus-nFwktiRPs15DeLchvuzPTg==/base.apk) at void com.videotrim.utils.VideoTrimmerUtil.lambda$trim$2(int, com.videotrim.interfaces.VideoTrimListener, com.arthenica.ffmpegkit.Statistics) (VideoTrimmerUtil.java:69) at void com.videotrim.utils.VideoTrimmerUtil$$ExternalSyntheticLambda2.apply(com.arthenica.ffmpegkit.Statistics) (D8$$SyntheticClass:-1) at void com.arthenica.ffmpegkit.FFmpegKitConfig.statistics(long, int, float, float, long, double, double, double) (FFmpegKitConfig.java:348)
10 pc 0000000000028d39 /data/app/~~-sGsvkHRgT4RY2x2B4uopA==/com.shinlee.showplus-nFwktiRPs15DeLchvuzPTg==/base.apk!libffmpegkit.so (offset 0x1000d000) (callbackThreadFunction+729) (BuildId: f757ac9d5e1cd011a0087e32315e06fe2bdad8a1)
==============================================================
onFinishTrimming event is working. and then onHide event is running. But then app is crashed