UnityPlugin-AVProMovieCapture
UnityPlugin-AVProMovieCapture copied to clipboard
OnCompleteFinalFileWriting callback firing before end of capture process
(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.