Ali Raza
Ali Raza
It looks like I can't open a paused audio and play it. I want to record a piece of audio, pause audio recorder, play and listen it. But when I...
` let session: SDAVAssetExportSession = SDAVAssetExportSession(asset: composition) session.audioSettings = [AVFormatIDKey:kAudioFormatMPEG4AAC,AVNumberOfChannelsKey:2,AVSampleRateKey:44100,AVEncoderBitRateKey:128000] previouslySavedDuration = startAudioTime session.outputURL = url session.outputFileType = AVFileType.m4a.rawValue session.exportAsynchronously(completionHandler:{ DispatchQueue.main.async(execute: { switch session.status{ case .failed: print("failed \(String(describing: session.error))") completion(false)...