0
喜歡的圖片上傳,我有一個應用程序想要使用相同的功能,照片應用程序提供。我可以像iOS照片應用程序一樣獲得視頻剪輯/編輯功能嗎?
應該有這些:
編輯保存的視頻,調整其面積,如切上半部分它的觀點。
拖動調整一個新的時間間隔視頻,如30秒的視頻 ,剪輯到16秒。
非常感謝!
喜歡的圖片上傳,我有一個應用程序想要使用相同的功能,照片應用程序提供。我可以像iOS照片應用程序一樣獲得視頻剪輯/編輯功能嗎?
應該有這些:
編輯保存的視頻,調整其面積,如切上半部分它的觀點。
拖動調整一個新的時間間隔視頻,如30秒的視頻 ,剪輯到16秒。
非常感謝!
剛剛嘗試這一點
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)
}
是的,我終於發現這一點,但它不能調整視頻區域,或自定義工具欄。 – itaen
只需檢查本教程可能會有所幫助 - https://www.raywenderlich.com/13418/how-to-play-record-edit-videos-in-ios –