AbedElazizShe / LightCompressor_iOS

A powerful and easy-to-use video compression swift package for iOS.
MIT License
97 stars 18 forks source link

background compress #7

Open LEEYOONJONG opened 2 years ago

LEEYOONJONG commented 2 years ago

Hello! I'm using your project, and It works wonderful!

But I want to compress video in background mode.

How can I write code for this work?

I tried to cover compressVideo function using DispatchQueue.global in background mode... but it doesn't work.

DispatchQueue.global(qos: .background).sync{
            compression = videoCompressor.compressVideo(source: videoToCompress, ..)
 ....
}

Any words can help! HELP ME!

AbedElazizShe commented 2 years ago

Hi @LEEYOONJONG sorry you're facing this, we will release an update very soon to fix all the issue encountered, we're working on it at the moment.

swapnilsinha17 commented 1 year ago

Hii @AbedElazizShe @LEEYOONJONG any update here?