I want to get file size and seconds of Movie file recorded by my app using AVFoundation.
I thought it is possible with using AVCaptureFileOutput.recordedFileSize and recordedDuration (by AVCaptureFileOutputRecordingDelegate#didFinishRecordingTo) but recordedFileSize and recordedDuration are zero.
Is it a bug or my mistake? Is there any solve?
I thought it is possible with using AVCaptureFileOutput.recordedFileSize and recordedDuration (by AVCaptureFileOutputRecordingDelegate#didFinishRecordingTo) but recordedFileSize and recordedDuration are zero.
Is it a bug or my mistake? Is there any solve?
Code Block Swift MyRecordingViewController: AVCaptureFileOutputRecordingDelegate { func fileOutput(_ output: AVCaptureFileOutput, didFinishRecordingTo outputFileURL: URL, from connections: [AVCaptureConnection], error: Error?) { let seconds = output.maxRecordedDuration.seconds // zero let fileSize = output.maxRecordedFileSize // zero }