Reputation: 615
I'm attempting to allow users of my app (iOS 13) to select purchased videos/movies for playback. From what I have read this can be done with the MPMediaPickerController. The code I have presents the user with the view to select items, but is only showing music.
I'm beginning to think this should be called MPMusicPickerController :)
let mediaItemPicker = MPMediaPickerController(mediaTypes: .anyVideo)
mediaItemPicker.showsCloudItems = true
mediaItemPicker.allowsPickingMultipleItems = false
mediaItemPicker.prompt = "Choose a movie"
self.present(mediaItemPicker, animated: true, completion: nil)
Upvotes: 1
Views: 115