Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-23-2009, 11:14 AM   #1 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 11
YarGnawh is on a distinguished road
Unhappy AVAudioPlayer playing M4P, DRM, Protected AAC

iTunes iMix RSS Feed has a URL to a 30 second preview in a protected AAC M4P file.

iTunes iMix - HAIRY LMFAO GAGA

If you browse to the link on Mobile Safari, it plays the 30 second preview in "Quicktime". I'm trying to play the m4p file using AVAudioPlayer, but it gives me an error.

Error Domain=NSOSStatusErrorDomain Code=2003334207 "Operation could not be completed. (OSStatus error 2003334207.)"

Anyone have any insight on this issue?
YarGnawh is offline   Reply With Quote
Old 10-22-2009, 02:01 AM   #2 (permalink)
Registered Member
 
Join Date: Oct 2009
Location: Hamburg, Germany
Posts: 1
tommy2go is on a distinguished road
Default

No one was interested in your post so I hope and guess you figured out the solution for yourself?
Probably you can share this here for people like me stumbling upon this thread searching for the right answer

For myself I got the following code and I guess a corrupt NSURL formatting since the AVAudioPlayer returned is nil:

Code:
NSString *dummyURLString = @"http://a825.phobos.apple.com/us/r2000/005/Music/d8/a8/d2/mzi.jelhjoev.aac.p.m4p";
NSError *error;
NSURL *url = [NSURL URLWithString:dummyURLString];	
AVAudioPlayer *player = [[AVAudioPlayer alloc] initWithContentsOfURL:url error:&error];
[player play];
And the &error shows the following:

Code:
Error Domain=NSOSStatusErrorDomain Code=-43 "Operation could not be completed. (OSStatus error -43.)"
Any suggestions???

Thanks!

Last edited by tommy2go; 10-22-2009 at 02:06 AM.
tommy2go is offline   Reply With Quote
Old 10-22-2009, 09:50 AM   #3 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 11
YarGnawh is on a distinguished road
Default

Sorry dude. I was never able to get it to work. And I got no reply from the devforums at Apple. Wind up removing the feature from my app.

I still 100% sure there is a way. If iTunes and Safari are able to play it. I don't see why I can't get it to work in an app.
YarGnawh is offline   Reply With Quote
Old 12-14-2010, 02:06 AM   #4 (permalink)
Registered Member
 
Join Date: Jan 2009
Posts: 19
kpdipen is on a distinguished road
Default

Hi I am facing same issue. I have tried with AvAudio player, UIWebView, AvPlayer. But at last not able to play that file. I have also posted question on developer forum but as you know no reply from them.

Do you find any solution?

Thanks,
Dipen
kpdipen is offline   Reply With Quote
Old 02-09-2011, 05:23 AM   #5 (permalink)
Registered Member
 
Join Date: Aug 2009
Posts: 13
jfalexvijay is on a distinguished road
Default

The audio file encoded format is wrong, thats why you are getting this kind of issues.

Now I am developing an Audio Processing application for iPhone. I have faced this kind of more issues.


Quote:
Originally Posted by kpdipen View Post
Hi I am facing same issue. I have tried with AvAudio player, UIWebView, AvPlayer. But at last not able to play that file. I have also posted question on developer forum but as you know no reply from them.

Do you find any solution?

Thanks,
Dipen
jfalexvijay is offline   Reply With Quote
Reply

Bookmarks

Tags
aac, avaudioplayer

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 314
10 members and 304 guests
chiataytuday, coolman, givensur, ipodphone, jbro, mediaspree, mottdog, mtl_tech_guy, Punkjumper, vilisei
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,114
Posts: 402,882
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:19 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0