Questions tagged [mpmediapickercontroller]

176 questions
2
votes
3 answers

iPhone SDK: How can I write an audio file picked from iPod Library into my app's Documents Folder?

How can I write an audio file picked from mediaPicker into my app's Documents Folder? Basically I am selecting a audio file from iPod Library. I want that this selected file be copied into my app's Documents folder. So that I can reference it from…
Meghan
  • 1,004
  • 1
  • 15
  • 34
2
votes
1 answer

In iPhone, how to store audio file picked from media picker to some directory?

How can I write an audio file picked from mediaPicker into some particular folder? We are currently writing image to file path with this method: [UIImagePNGRepresentation(image) writeToFile:pngPath atomically:YES]; Is it possible for to do the…
ios
  • 6,134
  • 20
  • 71
  • 103
2
votes
2 answers

Sorting an NSArray like the MPMediaPickerController/iPod Library

I'm developing a custom UIViewController for iPhone that emulates a subset of the MPMediaPickerController for files in my application's local documents directory. In particular, I'm attempting to re-create the Songs tab. I've been successful in…
2
votes
0 answers

MPMediaPickerController filter by albums only?

Is it possible to have MPMediaPickerController filter results so that it only displays albums in the results?
ricsto
  • 49
  • 4
2
votes
1 answer

How to get file location of an song in iPod library in iOS

I have the reference of a MPMediaItem when user selects an audio from the iPod library. I am getting the asset url of that item by using let url = item.valueForProperty(MPMediaItemPropertyAssetURL) But this is not giving me the exact physical…
HariKarthick
  • 1,369
  • 1
  • 19
  • 47
2
votes
1 answer

Picking a song and play from Music app library - Swift 2.0

I just took a basic Swift 2.0 course. I am trying to make an app to select a song from iOS's Music app library and play it. I came across this link which shows how to make media item picker. import UIKit import MediaPlayer class ViewController:…
2
votes
2 answers

MPMediaPickerController in one view and the MPMediaPlayback in another view. How to?

Basically I have a three view stack. In the last view I got a MPMediaPickerController that lets the user pick a song from his/her library. The song is to be played later from the first view. How can I tell the player (in the first view) what should…
2
votes
2 answers

UIPopoverController forces iPad into Portrait orientation

I think the issue here is that I'm trying to call a mediaPicker and that doesn't support other orientations... Does anyone have a fix for this? Here is my current code: - (IBAction)openMediaPicker:(id)sender { MPMediaPickerController…
2
votes
3 answers

Using iPhone audio files in own app - copy the audio file - is that possible?

I like the user to pick an audio file from the available list of audio and copy it into my own app. In the retrieved items of userMediaItemCollection in the Apple sample code "AddMusic" there is the property: MPMediaItemPropertyAssetURL. But I cant…
user387184
  • 10,953
  • 12
  • 77
  • 147
2
votes
0 answers

How to persist an MPMediaItemCollection?

I'm developing an app where I let the user to create a playlist by using the MPMediaPickerController. I'd like to be able to save this playlist, and I've been looking for posts dealing with this issue, but I'm not sure if the solutions I've read are…
AppsDev
  • 12,319
  • 23
  • 93
  • 186
2
votes
1 answer

Cannot dismiss MPMediaPickerController on iOS 8.1.3

I can see the list of songs and select the songs. But I cannot dismiss the view controller on pressing "Done". I've tried PresentViewController since Modal controller is deprecated. - (IBAction) showMediaPicker: (id) sender { picker = …
Neo101
  • 33
  • 3
2
votes
2 answers

implement alphabetical scroll in MPMediaPickerController app

If you go to the iphone library and then go to songs, you will see the songs being displayed in a similar way to the MPMediaItemPicker class does. The only difference is that the ipod application shows the search bar right at the top of the list and…
Pavan
  • 17,840
  • 8
  • 59
  • 100
2
votes
3 answers

MPMediaPickerController for selecting video files

I want to enable the user to select a video file from the on-device iPod library (so that I can play it in my own app). Is that possible? I was thinking on using MPMediaPickerController but I am not sure if it is able to select video files or just…
Rony Rozen
  • 3,957
  • 4
  • 24
  • 46
2
votes
1 answer

MPMediaPickerController displaying deleted songs

I am using the MPMediaPickerController in two separate app, which come from entirely different code bases. When I use this control in my app to select songs, it lists songs that I have deleted from my iPad. The songs are not listed in the iPad music…
Remixed123
  • 1,575
  • 4
  • 21
  • 35
2
votes
1 answer

Specify 'songs' tab for MPMediaPickerController

Good day- I have some code that opens the MPMediaPickerController: MPMediaPickerController *mediaPicker = [[MPMediaPickerController alloc] initWithMediaTypes:MPMediaTypeMusic]; mediaPicker.delegate = self; mediaPicker.allowsPickingMultipleItems =…
Richard Lovejoy
  • 663
  • 10
  • 18