Closed huynguyennovem closed 4 years ago
Thank you for raising this issue, I will look into it in a couple of days :D
Thank you for raising this issue, I will look into it in a couple of days :D
Yeh, I think the problem comes from the running task (compression task). No matter how I cancel the coroutine job, the task is still running (I saw the while loop).
I added a way to cancel the compression, just call VideoCompressor.cancel()
and that would get the job done. Let me know if it works fine with you.
I added a way to cancel the compression, just call
VideoCompressor.cancel()
and that would get the job done. Let me know if it works fine with you.
Many thanks! This worked perfectly (like)(like)(like)(like)
I have tried to implement as below by getting a Job when starting a video compression, but this does not work. The job cancelation is executed but its task still runs (I was checking log to know that via
Log.d(TAG, "Compress process: " + v);
I think I need to get the correct scope of that compression coroutine so that I can cancel it.