应该有这些:
修改已保存的视频,调整其区域的大小,例如剪切其上半部分的视图。
拖动以调整新的时间间隔视频,例如30秒视频 ,将其剪辑为16秒。
非常感谢!
答案 0 :(得分:0)
试试这个
if UIImagePickerController.isSourceTypeAvailable(UIImagePickerControllerSourceType.PhotoLibrary)
{
let imagePicker = UIImagePickerController()
imagePicker.delegate = self
imagePicker.sourceType = .PhotoLibrary
imagePicker.mediaTypes = [kUTTypeMovie as String]
imagePicker.videoMaximumDuration = 300
imagePicker.videoQuality = .Type640x480
imagePicker.allowsEditing = true
presentViewController(imagePicker, animated: true, completion: nil)
}