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

前端 未结 4 1772
执念已碎
执念已碎 2020-12-20 03:08

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 tho

4条回答
  •  天命终不由人
    2020-12-20 03:45

    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

提交回复
热议问题