Questions tagged [mpmediapickercontroller]
176 questions
1
vote
0 answers
use of undefined type 'MPMediaPickerControllerDelegate' in swift 5
I am trying to build a sample application to help myself learn and prepare for an application I need to build at work, so I am following a tutorial on developer.apple.com, here...…

Neglected Sanity
- 1,770
- 6
- 23
- 46
1
vote
0 answers
How to download mp3 file from MPMediaPickerController using swift language?
My application is download song from MPMediaPickerController and save mp3 file in Document directory
File is download successfully in .m4a formate, But i need mp3 file. i'm already change file extension .m4a to .mp3 but this file is not…

Digvijaysinh Gida
- 381
- 1
- 7
- 20
1
vote
0 answers
didPickMediaItems is returning NULL now for some reason?
This worked for a while but now suddenly, it is returning NULL, despite me picking a song each time.
-(void)mediaPicker: (MPMediaPickerController *)mediaPicker didPickMediaItems:(MPMediaItemCollection *)mediaItemCollection
Then an NSLog reveals…

Andrew
- 15,935
- 28
- 121
- 203
1
vote
1 answer
Can I filter out songs downloaded to device from Apple Music?
I have a MPMediaPickerController showing songs available on the device to use for sending to other users on my app. I've filtered out Cloud items, but I also want to filter out songs from Apple Music that have been made "available offline."…

Austin Berenyi
- 1,013
- 2
- 13
- 25
1
vote
2 answers
MPMediaPickerController on iPad - bottom of view not accepting touch events
I'm having some trouble with this Media picker on iPad... I can easily recreate the problem in a fresh View-based application.
1) Create new View-Based application for iPad in XCode
2) Open the source for the View Controller and add the…

Cruinh
- 3,611
- 4
- 38
- 45
1
vote
1 answer
Adding a button to last UITableView row
I'm developing an app where the user can choose between a number of included songs. I also want the user to be able to choose a song from his/her iPod Library.
Currently the song is choosen by selecting it in a UITableView. So I figure I would like…

sebrock
- 1,214
- 2
- 15
- 32
1
vote
1 answer
MPMediaQuery get local song list
I'm trying to get local song list from iPod music library by MPMediaQuery:
MPMediaQuery *everything = [[MPMediaQuery alloc] init];
NSArray *itemsFromGenericQuery = [everything items];
self.songsList = [NSMutableArray…

Bagusflyer
- 12,675
- 21
- 96
- 179
1
vote
2 answers
iPad MPMoviePlayer hiccups
I'm working on an iPad app, it has a few videos within views using the MPMediaPlayer framework.
Videos are working nice but on viewLoad there is a flashing of the video area when it loads the video. It shows black for a split second then starts…

Hippocrates
- 2,510
- 1
- 19
- 35
1
vote
1 answer
Ios 8.4 MPMediaPickerController no longer displays AudioBooks
This question is similar to one asking about Podcasts for ios 8.4 and I believe it may be a similar issue but affecting audiobooks - since Audiobooks were moved to iBooks from Music in 8.4 it may however be different.
Prior to iOS 8.4, this code…

rfranczyk
- 33
- 6
1
vote
1 answer
Convert Music File to NSData using MPMediaPickerController
I am using MPMediaPickerController to upload music files. When I tried to convert MPMediaItem to NSData, the NSData always returns NULL.
Here is my code:
- (IBAction)addMusic:(id)sender {
MPMediaPickerController…

Nishi Bansal
- 315
- 1
- 5
- 16
1
vote
1 answer
MPMediaPickerController fails to announce controls with VoiceOver
I'm debugging an app that requires full accessibility using VoiceOver and one feature ask the user to select songs to play. The app uses MPMediaPicker. The problem is that MPMediaPicker does not really meet VoiceOver accessibility requirements, for…

Gabriele
- 138
- 4
1
vote
1 answer
SWIFT - Can't set MPMediaPicker delegate
Code:
import UIKit
import MediaPlayer
class WelcomeView: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
var mediaPicker: MPMediaPickerController =…

Pasha Pervii
- 33
- 1
- 6
1
vote
1 answer
Convert NSURL to NSData from didPickMediaItems
I can't seem to convert NSURL to NSData. The NSURL appears when printed out, but then when I try to convert it to NSData, the audioData variable keeps returning nil.
func mediaPicker(mediaPicker: MPMediaPickerController!, didPickMediaItems…

user3353890
- 1,844
- 1
- 16
- 31
1
vote
0 answers
Unable to select songs from music library when using MPMediaPickerController
I'm using MPMediaPickerController to select songs from user's music library. Those songs that will be selected by user will be played using AVAudioPlayer.
My app was already live on the app Store, but I've received some reports from users that there…

edie
- 758
- 1
- 11
- 29
1
vote
0 answers
How to know the audio file size from MPMediaPickerController
MPMediaPickerController can pick a MPMediaItem and use it to play music or export it to somewhere. I can get the duration of audio file but I can't find a way to know what the size of its. How can I get file size from audio file from assets-library?…

user3727252
- 11
- 3