简体   繁体   中英

UIImagePickerController get video length before compression

I need to get the video length before the compression happens cos I need to restrict my video length to a maximum time interval. When I click on a video the compression happens first and after that only it calls didFinishPickingMediaWithInfo. So if its a larger video file there is no point of making user wait to do the video size validation. Isn't there any way to make it prior to didFinishPickingMediaWithInfo.

If you are letting them record, you can cap the length of video capture with videoMaximumDuration .

I believe it also applies to the Library, but not sure.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM