Questions tagged [mpmediapickercontroller]

176 questions
0
votes
1 answer

Reducing iTunes music size in Swift

I am working with accessing iTunes Library music. I stored a selected song in my Documents directory. The song's size is 13MB, and I need to reduce the song size so that I can easily send it to the server. How do I to it? Here is my overall code: …
HariKarthick
  • 1,369
  • 1
  • 19
  • 47
0
votes
1 answer

Find the location of an song in iPod library in swift?

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…
user7142042
0
votes
1 answer

How to access the media library with Swift code?

I have to display a title of the song which I was selected I get the title(No need to play the song in the music library).What my question is I want to send song I was selected(Encoded) to PHP server..To display the song in a table view from the…
user6777252
0
votes
0 answers

Saving a music from the ipod library - swift

I'm trying to save a music from the iPod library in my app and be able to use it later. I've used the media picker to get the music URL, but I don't know how to save it in my app and play it later. Here is the code that I have used to get the music…
Theilya
  • 69
  • 11
0
votes
2 answers

How would I make a conditional statement for my mediaPickers?

I need a conditional statement so that I can select a song for one avplayer and another song for my other avplayer. I have two buttons that open the mediaPicker to select one song for each avplayer. The code I have currently works but the user has…
coding22
  • 689
  • 1
  • 7
  • 28
0
votes
1 answer

How do I get a mediaItemCollection from the mediaPickerController to play on an AVPlayer?

In my quest to answer this question I came across this in a book. "MPMediaItem, however, has an MPMediaItemPropertyAssetURL key (or assetURL property) whose value is a URL. That gives you a reference to the music file on disk,...having obtained an…
0
votes
1 answer

MPMediaPickerController and MPMediaitemPropertyAssetUrl

Im looking for a way to use the MPMediaPickerController to allow the user to select a song. I want the user to be able to assign the songs file path to a button so that each time he/she presses the button it plays that particular song. I'm not…
Pacifico
  • 47
  • 10
0
votes
1 answer

MPMediaPickerController done button missing

I am facing the done button issue in the MPMediaPickerController. Device: iPod Touch iOS :9.2 MPMediaPickerController *picker = [[MPMediaPickerController alloc] initWithMediaTypes:MPMediaTypeMusic]; picker.delegate =…
SRI
  • 1,514
  • 21
  • 39
0
votes
2 answers

Is it possible to use MPMediaPickerController to load audio files from library and save to document directory?

Is it possible to use MPMediaPickerController to load audio files from library and save to document directory? Welcome any comment. Thanks KS
arachide
  • 8,006
  • 18
  • 71
  • 134
0
votes
1 answer

Create a gallery for local app content in iOS

My app takes some videos and pictures and stores them in the Application Home/Documents folder. I want to create a gallery that will open and display (and playback) these items. I looked into MPMediaPickerController and it looks like the only option…
noobuntu
  • 903
  • 1
  • 18
  • 42
0
votes
2 answers

Media Picker Items's Plus Button Not Animated When Pressed

My app calls iOS' native MPMediaPicker during music selection for its playlist. Code: // show media picker MPMediaPickerController *picker = [[MPMediaPickerController alloc] initWithMediaTypes: MPMediaTypeMusic]; picker.delegate …
Ascendant
  • 2,430
  • 3
  • 26
  • 34
0
votes
1 answer

How can I put the MPMediaPickerController cancel button on left side?

I'm developing an app and so far all cancel buttons have been on the left side of the navigation item. I thought this was standard and that's what Apple do with their apps. That is until I ran into the MPMediaPickerController which has it's cancel…
Daniel Wood
  • 4,487
  • 3
  • 38
  • 36
0
votes
2 answers

ios media picker shows only white screen/stuck

So I'm currently making an music application for my project, and it allows user to create their own music playlist. However when I clicked on show media picker button it only shows white screen, It doesn't happen when the view that contains media…
Ega Setya Putra
  • 1,645
  • 6
  • 23
  • 51
0
votes
1 answer

UIMediaPickerController under iOS 8

I've run into an issue with the media picker on iOS 8. I have an iPad application, landscape mode supported only. The following code works just fine under iOS 6 and iOS 7, but on iOS 8, it presents the media picker in landscape mode, but a vertical…
Lehel Medves
  • 527
  • 1
  • 5
  • 15
0
votes
1 answer

In swift, is there a way to have UIView class also be MPMediaPickerControllerDelegate?

I am currently trying to make a music app using swift. This is my first app (not counting a couple tutorial things). I've been looking at some sample code, including Apple's addMusic example, and I have had issues with the following translation of…
EthanMN
  • 23
  • 1