UnityPlugin-AVProMovieCapture icon indicating copy to clipboard operation
UnityPlugin-AVProMovieCapture copied to clipboard

OnCompleteFinalFileWriting callback firing before end of capture process

Open Chris-RH opened this issue 2 years ago • 0 comments

(Issue received via email, but posted for clarity to other users)

User intends to create video and share it, then delete video from device. Sharing is done on OnCompleteFinalFileWriting callback. Deleting the file causes an exception, because later in the StopCapture() there is a call to ApplyPostOperations() which still needs to access the file.

What we need to fix: OnCompleteFinalFileWriting callback firing needs moving to after the post processing is complete (or if not required it will fire right away) or we need some other way to notify the user that all processes are complete.

Also noted: CancelCapture() does not always delete the created file.

Chris-RH avatar Jan 06 '23 14:01 Chris-RH