在我的应用中访问iOS设备的视频应用中的视频 [英] Access the videos in Videos app of an iOS device in my app
本文介绍了在我的应用中访问iOS设备的视频应用中的视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个应用程序来选择和播放iPad中的视频。我想选择设备中存在的默认视频应用中保存的视频。如何在我的应用程序中访问这些视频?
I am developing an application to choose and and play videos in iPad. I want to choose the videos saved in the default Videos app present in the device. How can I access those videos in my application?
推荐答案
您可以将MPMediaQuery用于视频,这些视频会为您提供视频列表您可以在AVFoundation框架中使用的视频资源的URL和URL。例如,请在此处查看接受的答案:
You can use an MPMediaQuery for videos which will give you a list of videos and urls for the video assets that you can use in the AVFoundation framework. For an example, see the accepted answer here:
视频媒体类型不起作用的MPMediaPickerController
这篇关于在我的应用中访问iOS设备的视频应用中的视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文