获取相机iPhone SDK拍摄的视频的持续时间 [英] Getting duration of video taken by camera iphone sdk

查看:91
本文介绍了获取相机iPhone SDK拍摄的视频的持续时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用iphone上的UIImagePickerController使用相机拍摄视频的持续时间,有人找到了解决方案吗?

I am trying to get the duration of a video taken with the camera using UIImagePickerController on the iphone, has anyone found a solution to this?

谢谢

Daniel

推荐答案

您现在可以使用AVFoundation执行此操作,可以将电影制作为AVAsset,然后检查duration属性

You can now do this using AVFoundation you can make your movie into an AVAsset and then check the duration property

这篇关于获取相机iPhone SDK拍摄的视频的持续时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆