AbedElazizShe / light_compressor

A powerful and easy-to-use video compression plugin for Flutter.
MIT License
59 stars 32 forks source link

Potential crash while compressing #16

Closed Tom3652 closed 2 years ago

Tom3652 commented 2 years ago

Sometimes i have this error that crashed my app :

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '*** -[AVAssetReader startReading] cannot be called again after reading has already started'

As i really don't know anything about Swift, i have simply checked that on StackOverFlow and they all related to a video compression. So if tells you something, please can you explain me why am i seeing this ?

Thanks a lot in advance

AbedElazizShe commented 2 years ago

@Tom3652 at the moment, the library supports a single video compression. Are you compressing multiple videos at the same time?

Tom3652 commented 2 years ago

Yes actually i was :) In the meantime i have made a queue system to avoid this situation

AbedElazizShe commented 2 years ago

Thank you @Tom3652, I will notify you when the multiple videos compression is ready as it requires android and ios work :D

Tom3652 commented 2 years ago

Thank you for your work ! I have tried the video_compress package and yours is much faster for the same render :)