Questions tagged [mpmediapickercontroller]
176 questions
30
votes
2 answers
MPMediaPickerController doesn't indicate selection when allowsPickingMultipleItems = true
MPMediaPickerController used to give a visual indication that an item was selected prior to iOS 8.4.
In 8.4 when a picker is displayed and allowsPickingMultipleItems is set to true, it does show that items are selected in…

Vizllx
- 9,135
- 1
- 41
- 79
18
votes
3 answers
MPMediaItems raw song data
I was wondering how to access an MPMediaItem's raw data.
Any ideas?

conradev
- 1,074
- 1
- 14
- 31
16
votes
4 answers
MPMediaPickerController.showsCloudItems seems to do nothing
Posted this on Apple with no luck, but now that the iOS 6 NDA is up, hoping more eyes will see it here.
I am attempting to modify an app to only allow a user to select music that has been downloaded locally. I have the following code under iOS 6…

nickbona
- 1,374
- 1
- 11
- 23
12
votes
3 answers
Runtime error when using MPMediaPickerController in iOS Simulator
The following happens when I try to run an app using the MPMediaPickerController on the iOS Simulator.
2012-05-28 22:26:42.416 My App[48426:11f03] Could not load source: 3
2012-05-28 22:26:42.418 My App[48426:11f03] *** Assertion failure in…

houbysoft
- 32,532
- 24
- 103
- 156
10
votes
2 answers
iOS 8.4 MPMediaPickerController bug filtering by podcast
Prior to iOS 8.4, this code was allowing me to select a podcast from my phone:
MPMediaPickerController *picker = [[MPMediaPickerController alloc] initWithMediaTypes: MPMediaTypePodcast];
With the latest OS though, the same code now pulls up an empty…

Oren
- 5,055
- 3
- 34
- 52
9
votes
2 answers
MPMediaPickerController shows an empty screen on iOS10
I am trying to port my apps to iOS 10, including the visualization of a MPMediaPickerController by means of the following code:
@IBAction func handleBrowserTapped(_ sender: AnyObject){
let pickerController = MPMediaPickerController(mediaTypes:…

Fabrizio Bartolomucci
- 4,948
- 8
- 43
- 75
9
votes
1 answer
Song picker for Android
Is there a song picker for Android that can be invoked programatically?
I'm looking for something similar to iPhone's MPMediaPickerController, which shows a view from where the user can select songs.

hpique
- 119,096
- 131
- 338
- 476
8
votes
2 answers
URL to MPMediaItem
I have a simple question but I can't find the right answer. I have a song url saved to my database in a path like this.
aSound.path = [[item valueForProperty: MPMediaItemPropertyAssetURL] absoluteString];
How to convert back to a MPMediaItem object…

flatronka
- 1,061
- 25
- 51
8
votes
3 answers
How Do I Present a Music Library With a View Controller for a MPMediaPickerControllerDelegate using Swift 3 iOS10?
I am trying to follow a recent post on using a MPMediaPickerControllerDelegate to present a music selection list.
The tutorial is found at this URL:
http://www.justindoan.com/tutorials/
I am using this code:
import UIKit
import MediaPlayer
class…

George Lee
- 814
- 18
- 34
8
votes
3 answers
MPMediaPickerController orientation on iPad
How can I set correct orientation of MPMediaPickerController ?
I've return YES in shouldAutorotateToInterfaceOrientation, but i have bad frame for Landscape (if show MPMediaPickerController in Portrait first, and conversely).
I've rotating my device…

Sergey Kopanev
- 1,496
- 3
- 17
- 29
8
votes
3 answers
Pick Music from iOS Library and Send / Save
I have a query regarding Music Files.
I want to select 1/more Music files from the Music Library of iPhone/iTouch/iPad and Save in my Documents Folder or Send it to Server.
I roughly went through MPMediaPickerController and AddMusic(Sample…
user1280350
7
votes
1 answer
MPMediaPickerController missing search functionality on the iPad
When setting up an MPMediaPickerController with the same code the search functionality works on the iPhone but not on the iPad. There's a search box in the picker on iPhone, but not on iPad.
Is there a way to enable this functionality on the iPad?

sobri
- 1,626
- 15
- 28
6
votes
1 answer
Download MPMediaItem music from cloud
MPMediaPickerController returns a MPMediaItem
If a local url is returned it is possible to play the sound.
If the music has not been downloaded locally, the assetURL is null.
How to download the MPMediaItem music locally ?

fvisticot
- 7,936
- 14
- 49
- 79
6
votes
2 answers
iPhone sdk, save MPMediaItemCollection?
I have my application displaying a MPMediaPickerController. I would like to save the MediaItem and start it playing again on startup. I think this is doable using the MPMediaQuery. It seems, I should be using the MPMediaItemPropertyPersistentID but…

Kyle
- 17,317
- 32
- 140
- 246
6
votes
2 answers
How to reduce audio file size in IOS
I am doing an application which get songs from mediapicker and saving it to my application.i want to reduce the size of file,but i got a sample named "AACConverter",i test the application but it is not reducing the file size.could any one help me…

girish
- 900
- 12
- 23