Closed daschaa closed 2 years ago
@joxw1 nowadays, my office routine is too much busy. I can fix it on weekend
@daschaa I have not Samsung j5 device. can you tell me the reproducible step of this error so I can fix it
I can not tell you exactly the reproducible step because i just saw this issue often in our crash reports. I think the problem lays in the third-party-dependency rather than in this library. I can only reference to the stacktrace given above.
Ok i have fixed the issue and created my own VideoSlimmer package. As long as the VideoSlimmer package is not maintained, I would propose to use my package here: https://github.com/daschaa/VideoSlimmer/packages/1163123
I can add you as maintainer if you want to. Then you don't have to add the code to your native codebase. Would be cool if we could collaborate there. My plan is to refactor the package completely and add proper testing to it. What do you think @nomi9995 ? 🙌🏼
@daschaa Thanks a lot. I already have removed the VideoSlimmer package and maintaining my own. I have a plan to replace this in the future because it is slow.
https://github.com/Shobbak/react-native-compressor/commit/443cefa634d030129de586c3590ddfef9f1af956
@daschaa https://github.com/AbedElazizShe/LightCompressor My plan is to integrate this package what do you think?
@nomi9995 Did you check the license of the mentioned library? That is GPL 3. I am not a lawyer, but I think that would mean that you also have to change your license to GPL 3. And unfortunately I am currently not 100% sure, but I think that would mean that you would lose us as users.
Correct me if I am wrong.
@NiklasLehnfeld sorry I did not read. i will revert it soon
Sorry, I am a bit confused. Were you actually using the library? I don't see the dependency in the build.gradle
in the last few commits. 🤔
And it was also not used anywhere in the commit you reverted, was it?
@NiklasLehnfeld I was copied code directly in this package but then I reverted. now i am using this package https://github.com/nomi9995/VideoCompressor
@nomi9995 ah okay. Is that now already included in one of the latest releases?
@nomi9995 ah okay. Is that now already included in one of the latest releases?
yes, included in new release.
I think it is already fixed. feel free to reopen if you see this problem again.
fixed in 1.8.2
We are currently facing an error with the compression on a Samsung J5 device. It runs into an IllegalStateException in the
VideoSlimmer.convertVideo()
call.We get the following stacktrace:
We found out, that in the
com.zolad.videoslimmer
package thereleaseCoder()
method has no proper exception handling if an encoder is already released. This results in the exception bubbling up into thereact-native-compressor
package.Is there any chance that we can fix this in this library?