cancelWriting()
Cancels the creation of the output file.
Declaration
func cancelWriting()Discussion
If the asset writer is in AVAssetWriter.Status.failed or AVAssetWriter.Status.completed state, calling this method has no effect. Otherwise, invoking it blocks the calling thread until the asset writer finishes canceling the writing session.
If the asset writer created an output file during the writing process, calling this method deletes the file.