视频修整在UIImagePickerController中不起作用

时间:2018-12-11 12:06:31

标签: ios swift uiimagepickercontroller trim

从视频的左侧(在UIImagePickerController中的修剪工具栏开始,修剪功能不起作用。如果我们给定videoMaximumDuration并且视频长度超过videoMaximumDuration,则可以正常工作。

let imagePicker = UIImagePickerController()
imagePicker.delegate = self
imagePicker.sourceType = .photoLibrary
imagePicker.allowsEditing = true
//imagePicker.videoMaximumDuration = 60
imagePicker.mediaTypes = ["public.movie"]

0 个答案:

没有答案