Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
393 views
in Technique[技术] by (71.8m points)

ios5 - Access the videos in Videos app of an iOS device in my app

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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 with video media types not working


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...