Playing music in iPhone App?

Discussion in 'iOS Programming' started by sh0w, Jun 3, 2010.

  1. sh0w macrumors newbie

    Jun 3, 2010
    Alright, so I'm working on an iPhone app that kind of simulates a DJ Mixer, and the problem is the developers say they can't load preexisting iPod/iPhone music because Apple blocks it. Some of our solutions were to use a service that had a bunch of .mp3s already that we can download into the App.

    His solution is to have it connect via wifi connection and load the users music from a computer. This is completely unacceptable because I'm not going to force a user to carry around their desktop PC whenever they want to use the App.

    I sent him these APIs, but he says that they won't load .mp3s, they only load .mp3 metadata. I'm not sure if he's correct as I've never had to work with APIs before.

    It doesn't make any sense that all these APIs would only load metadata and not allow you to stream .mp3s.

    I've also tried grooveshark for mp3s even though their Application was rejected by Apple.

    Can anyone help me think of a solution for this that would allow users to play .mp3s and mix them in our app?
  2. firewood macrumors 604

    Jul 29, 2003
    Silicon Valley
    Listen to your developers.

    You can't access iPod music samples using any of Apple's allowed APIs. The OS even turns off recording if you try to play any of these songs.

    You need to have users duplicate load the mp3's somewhere where apps are allowed to access the files.
  3. sh0w thread starter macrumors newbie

    Jun 3, 2010
    Alright, well where can I have them load the .mp3 from that will allow them to use the app anywhere.

    Bluetooth or Wifi is definitely not an option for us.
  4. CarlisleUnited macrumors 6502

    Jan 30, 2007
    Im not too sure if I understand your problem correctly but if all you want to do is play a song from your iPod or iPhone you can use MPMusicPlayerController, it won't allow you to play two songs simultaneously though.
  5. sh0w thread starter macrumors newbie

    Jun 3, 2010
    Yea, it would have to play 2 songs at once.

    The problem was, he emailed me saying that it Apple blocks applications from loading music into them, so we started coming up with creative solutions.

    My solutions were the APIs that I listed (I thought it would also be cool if a user had a larger database of music to work with than their own collection, so I was trying to make the best of the situation, so I'd rather a database of music than the users own collection.)

Share This Page