Questions tagged [mpmediapickercontroller]
176 questions
5
votes
2 answers
MPMediaPickerController with video media types not working
I am trying to browse video stored in my iPod library using the new video media types. With any video type I get this error on the console:
Warning: Unsupported media types (1024), using MPMediaTypeAny.
After this error, the picker only shows…

bentford
- 33,038
- 7
- 61
- 57
5
votes
2 answers
Get audio file size without export
i'm developing an app that export audio file stored in the iPod library, but i should verify the file size before export and upload (server has a fixed max upload size):
i know that after exporting file, the size will not be the same: is there any…

Red Mak
- 1,176
- 2
- 25
- 56
5
votes
1 answer
How can i use UIDocumentInteractionController with MPMediaPickerController
I implemented MPMediaPickerController
- (IBAction)pickSong:(id)sender {
MPMediaPickerController *picker =
[[MPMediaPickerController alloc] initWithMediaTypes: MPMediaTypeMusic];
picker.delegate = self;
…

Alexy Ibrahim
- 554
- 1
- 7
- 20
4
votes
3 answers
Access device music files from iPhone app programmatically
I want to access music files which are available on the iPhone and get it listed (or) get the file into my iPhone application some delegats and start playing it. Is it possible to do it ? Similar to how we access images from device photo album using…

Getsy
- 4,887
- 16
- 78
- 139
4
votes
3 answers
iOS 13: MPMediaPickerController - Internal Error / The requested app extension could not be found
It seems that the general MPMediaPicker is not working anymore on ios13 (ipad air 2, iphone SE)
The example 1:1 copied from there is not showing up the media…

Martin Mlostek
- 2,755
- 1
- 28
- 57
4
votes
1 answer
MPMediaPickerController closes after startup (Swift)
When I click on the cell to open the MPMediaPickerController it opens when it starts up.
class MediaViewController: UITableViewController, MPMediaPickerControllerDelegate
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath:…

B2Fq
- 876
- 1
- 8
- 23
4
votes
2 answers
How to get MPMediaPlaylist's user defined cover image and description?
I know how to get MPMediaQuery's title by:
MPMediaQuery *playlistsQuery = [MPMediaQuery playlistsQuery];
NSArray *items = [playlistsQuery collections];
MPMediaPlaylist *myPlaylist = items.firstObject;
NSLog(@"%@",myPlaylist.name); //"New playlist…

Zuyin XU
- 43
- 1
- 5
4
votes
0 answers
MPMediaPickerController and iOS 8.4
From iOS 8.4 i can't get assetURL from MPMediaItem (nil for songs from Apple Music), which are sent to me by MPMediaPickerController. How can I hide (songs also iTunes Store) in MPMediaPickerController or get assetURL for them.
P.S. I assume, that I…

Richard Mazkewich
- 312
- 2
- 15
4
votes
2 answers
Best Practices for persisting iPod Playlist (MPMediaItemCollection) across sessions
When using in-app audio in the iPhone SDK, it is possible to allow users to select a list from their ipod library and create an in-app local playlist. If I want to persist this choice, it is easy to serialize the data and write to file, then…

coneybeare
- 33,113
- 21
- 131
- 183
4
votes
0 answers
How to expose panoramas as an album when picking photos albums
I'd like to expose a panoramic photo album in my custom picker as Apple Photo just does.
How would you do that, provided I find nothing about a special dedicated ALAssetsGroup?

Stéphane de Luca
- 12,745
- 9
- 57
- 95
4
votes
6 answers
MPMediaPickerController - iOS7
I developed test application on iOS 7 that pick the music from music library using MPMediaPickerController.
But when I present the media picker controller,it shows empty screen.
This is the code
(void) pickSong
{
MPMediaPickerController…

user2291109
- 79
- 1
- 2
- 6
4
votes
1 answer
How to change language setting of MPMediaPickerController.
I'm creating a music App and I want to support multi languages of MPMediaPickerController.
I programmed as follows:
- (IBAction)pushedMusicButton:(id)sender {
MPMediaPickerController *pickerController = [[MPMediaPickerController alloc]…

Yuji Kaneko
- 421
- 2
- 7
3
votes
0 answers
MPMediaPickerController with MPMediaTypeMusic "for you" or "browse" is empty
I am using the MPMediaPickerController to playback my own files (locally or purchased in the cloud). This is the code i use
musicPickerView = [[UIView alloc] initWithFrame:fullScreenRect];
musicPickerView.alpha = 0.0f;
musicPicker =…

Martin Mlostek
- 2,755
- 1
- 28
- 57
3
votes
2 answers
copy ipod music library audio file to Iphone App folder?
Can we store ipod music library file (song) to iPhone App folder?
if Yes Please suggest How can I do that?
Please Help
Thanks

ios
- 6,134
- 20
- 71
- 103
3
votes
1 answer
Upload audio to Firebase Swift
Hi i am trying to pick an audio file from the iphone and upload it to the Firebase storage.
This is how i am picking the audio file
public func mediaPicker(_ mediaPicker: MPMediaPickerController, didPickMediaItems mediaItemCollection:…

Salman Ali
- 255
- 8
- 25