Reputation: 1823
Our requirement is to embed/copy all the videos that are transferred to iPad from Mac using iTunes in our iOS app so that they can play the videos from our app itself using AVPlayer instead of using default Videos app.
Is this possible? If so how? I looked into MPMediaLibrary but couldn't get any working sample or any info regarding this.
Upvotes: 1
Views: 35
Reputation: 846
Create a share sheet extension, which the video can then be shared into your app. From there you can play it in your video player.
This is a good tutorial for share sheet extensions, if you need one: https://www.9spl.com/blog/build-share-extension-ios-using-swift/
Upvotes: 0