Skip to content

Instantly share code, notes, and snippets.

@agammahajan1
Created August 30, 2020 12:41
Show Gist options
  • Save agammahajan1/6e63a8109f80e5562d4c3f4b7776735c to your computer and use it in GitHub Desktop.
Save agammahajan1/6e63a8109f80e5562d4c3f4b7776735c to your computer and use it in GitHub Desktop.
let exporter = AVAssetExportSession(asset: avUrlAsset, presetName: AVAssetExportPresetHighestQuality)
exporter?.outputURL = outputURL
exporter?.outputFileType = AVFileType.mp4
exporter?.exportAsynchronously(completionHandler: {
print(exporter?.status.rawValue)
print(exporter?.error)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment