Home > nsosstatuserrordomain code > error error domain=nsosstatuserrordomain code=-43

Error Error Domain=nsosstatuserrordomain Code=-43

Contents

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the nsosstatuserrordomain error codes company Business Learn more about hiring developers or posting ads with us Stack Overflow

Nsosstatuserrordomain 2003334207

Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7

Nsosstatuserrordomain 1718449215

million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How to handle error code -43 from NSOSStatusErrorDomain when initializing AVAudioPlayer Object? up vote 20 down vote favorite 4

Nsosstatuserrordomain Code 1954115647

I observed strange behavior while working with AVAudioPlayer Following is the code: AVAudioPlayer *newPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL: [NSURL fileURLWithPath:[NSString stringWithFormat:@"%@",fileName]] error: &error]; In this, I downloaded the file from server and stored in application's Cache directory. I am getting following error: Error in playing = Domain = NSOSStatusErrorDomain Code = -43 Description = Error Domain=NSOSStatusErrorDomain Code=-43 "The operation couldn’t be completed. (OSStatus error -43.)" I also verified that file is present at nsosstatuserrordomain 1685348671 that location. Everytime I restart my application, I was getting same error for song play. After some time, when I tried to run same code, my player just works fine without any error. Can anyone tell me how to handle this error? Also, Can anyone explain me what was the problem? avaudioplayer share|improve this question edited Aug 22 '11 at 20:06 Bart Kiers 107k23187217 asked Sep 1 '10 at 13:50 Tanu 1431111 I got something very similar - except that I was able to get a local audio file to play but not a remote file using a URL. Did you ever figure out the meaning and correct response to OSStatus -43? –bradheintz Sep 30 '10 at 15:18 The file is not stored at local path of application's cache directory. And I am using that path only. not a remote path. –Tanu Oct 4 '10 at 6:13 I am not getting any information on "OSStatus -43". It only states that "The operation couldn’t be completed." –Tanu Oct 4 '10 at 6:13 I am getting the same error, and after verification I discovered that safari for iOS have also the problem with this mp3 file –someone0 Aug 22 '11 at 14:49 add a comment| 7 Answers 7 active olde

here for a quick overview of the site Help Center Detailed answers nsosstatuserrordomain 560557684 to any questions you might have Meta Discuss the workings nsosstatuserrordomain code=-10875 and policies of this site About Us Learn more about Stack Overflow the company Business error domain=nsosstatuserrordomain code=2003334207 "(null)" Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack http://stackoverflow.com/questions/3618744/how-to-handle-error-code-43-from-nsosstatuserrordomain-when-initializing-avaudi Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up how to solve Error Domain=NSOSStatusErrorDomain Code=-43 "The operation couldn’t be completed . (OSStatus error -43.) on ipad up vote 0 down vote favorite I am http://stackoverflow.com/questions/16793412/how-to-solve-error-domain-nsosstatuserrordomain-code-43-the-operation-couldn-%C3%84 beginner of ipad developer. I have used the MPMediaPickerController. it is in used the AVFileTypeCoreAudioFormat but it's give to error error--Error Domain=NSOSStatusErrorDomain Code=-43 "The operation couldn’t be completed. (OSStatus error -43.)" .caf file used on AVAudioPlayer but song is not play and its give to error - Error Domain=NSOSStatusErrorDomain Code=-43 "The operation couldn’t be completed. (OSStatus error -43. We have used the source code of like if(IS_IPAD) { // exporter = [[AVAssetExportSession alloc] initWithAsset: songAsset presetName: AVAssetExportPresetAppleM4A]; // exporter.outputURL = url; // exporter.outputFileType =AVFileTypeAppleM4A; // exporter.outputFileType = AVFileTypeAppleM4A; exporter = [[AVAssetExportSession alloc] initWithAsset: songAsset presetName: AVFileTypeCoreAudioFormat]; exporter.outputURL = url; //AVAssetExportPresetAppleM4A [exporter setOutputFileType:AVFileTypeCoreAudioFormat]; //exporter.outputFileType = [[exporter supportedFileTypes]objectAtIndex:0]; fname= [[item valueForProperty: MPMediaItemPropertyTitle] stringByAppendingString:@".caf"]; } else { exporter = [[AVAssetExportSession alloc] initWithAsset: songAsset presetName: AVAssetExportPresetPassthrough]; exporter.outputURL = url; exporter.outputFileType =AVFileTypeCoreAudioFormat; fname= [[item valueForProperty: MPMediaItemPropertyTitle] stringByAppendingString:@".caf"]; } // fname = [NSString stringWithFormat:@"%@",NSTemporaryDirectory()]; NSString *exportFile = [dataPath stringByAppendingPathComponent:fname]; exporter.outputURL = [NSURL fileURLWithPath:exportFile]; [exporter exportAsynchronouslyWithCompletionHa

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies http://stackoverflow.com/questions/5335431/avaudioplayer-not-working of this site About Us Learn more about Stack Overflow the company Business http://stackoverflow.com/questions/4901709/iphone-avaudioplayer-unsupported-file-type Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign nsosstatuserrordomain code up AVAudioPlayer -> not working up vote 0 down vote favorite Audio Player works fine if I initiate it for 20 to 30 times but after that it shows the following error Error Domain=NSOSStatusErrorDomain Code=-43 "The operation couldn’t be completed. (OSStatus error -43.)" The code currently I am using is as follows - (void)playShortSound:(NSString *)fileName type:(NSString *)type { if (!isSound) { return; error error domain=nsosstatuserrordomain } NSString *soundFilePath =[[NSBundle mainBundle] pathForResource: fileName ofType: type]; NSURL *fileURL = [[[NSURL alloc] initFileURLWithPath: soundFilePath] autorelease]; NSError *error; AVAudioPlayer *newPlayer =[[AVAudioPlayer alloc] initWithContentsOfURL: fileURL error: &error]; //newPlayer.numberOfLoops = 0; newPlayer.volume=1.0; if (newPlayer == nil){ NSLog(@"%@",[error description]); //[self playShortSound:fileName type:type]; //return; } else{ [newPlayer play]; newPlayer.delegate=self; } } - (void) audioPlayerDidFinishPlaying: (AVAudioPlayer *) player successfully: (BOOL) completed { if (completed == YES) { NSLog(@"Sound Playing complete"); }else { NSLog(@"error in completion of %@",player.url); } } iphone bug-tracking avaudioplayer share|improve this question asked Mar 17 '11 at 5:57 Zahur 91310 add a comment| 4 Answers 4 active oldest votes up vote 1 down vote I was having the same problem and instead of init the player from url i did it from NSData. NSString *soundFilePath =[[NSBundle mainBundle] pathForResource: fileName ofType: type]; NSData *soundData = [[NSData alloc] initWithContentsOfFile:soundFilePath]; NSError *error; AVAudioPlayer *newPlayer =[[AVAudioPlayer alloc] initWithData: soundData error: &error]; It seem to solved my problem hope it does yours. share|improve this answer answered Feb 16 '13 at 3:15 alamatula 1676 add a comment| up vote 0 down vote By calling the method many times you are allocating the in

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up iPhone: AVAudioPlayer unsupported file type up vote 22 down vote favorite 9 My app downloads an mp3 from our server and plays it back to the user. The file is 64 kbps (which is well within the acceptable range for iPhone if I understand correctly). I have looked up how to do this on dozens of sites and they all suggest that i do exactly this: NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://.../file.mp3"]]; NSError *e = nil; AVAudioPlayer *player = [[AVAudioPlayer alloc] initWithData:data error&e]; [player setDelegate:self]; When I run the code, player comes back null and I get this error: 2011-02-04 10:44:46.176 MyApp[6052:207] Error loading audio: Error Domain=NSOSStatusErrorDomain Code=1954115647 "The operation couldn’t be completed. (OSStatus error 1954115647.)" 2011-02-04 10:44:49.647 MyApp[6052:207] unsupported file type I have checked the file and I know that it works. It will play with no problems on Windows Media Player, and Quicktime on mac. I have also uploaded the file to the iPhone emulator and it plays with no problems whatsoever. The file is fine, but for some reason AVAudioPlayer doesn't like it. Is there something I need to change? Is there some kind of setting for NSData to specify what kind of file it is? Does anyone have any idea? iphone ios mp3 avaudioplayer share|improve this question asked Feb 4 '11 at 18:41 mtmurdock 5,880174590 add a comment| 4 Answers 4 active oldest votes up vote 27 down vote accepted At long last i have found a solution to this problem

 

Related content

avaudioplayer error code

Avaudioplayer Error Code table id toc tbody tr td div id toctitle Contents div ul li a href Avaudioplayer Sample Code a li li a href Nsosstatuserrordomain Code a li li a href Nsosstatuserrordomain Code a li li a href Error Domain nsosstatuserrordomain Code null a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have relatedl Meta Discuss the workings and policies of this site p h id Avaudioplayer Sample Code p About Us Learn more about Stack Overflow the company Business Learn more

avaudioplayer error 43

Avaudioplayer Error table id toc tbody tr td div id toctitle Contents div ul li a href Osstatus Error a li li a href Nsosstatuserrordomain Error Codes a li li a href Nsosstatuserrordomain a li ul td tr tbody table p here for a quick overview of the site Help relatedl Center Detailed answers to any questions you might osstatus error djay have Meta Discuss the workings and policies of this site About p h id Osstatus Error p Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting p h id Nsosstatuserrordomain Error

osstatus error 43 avaudioplayer

Osstatus Error Avaudioplayer table id toc tbody tr td div id toctitle Contents div ul li a href Nsosstatuserrordomain Avaudioplayer a li li a href Nsosstatuserrordomain Codes a li li a href Error Domain nsosstatuserrordomain Code null a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and relatedl policies of this site About Us Learn more about Stack Overflow nsosstatuserrordomain error codes the company Business Learn more about hiring developers or posting ads with us Stack p h id

osstatus error domain code=-43

Osstatus Error Domain Code - table id toc tbody tr td div id toctitle Contents div ul li a href Nsosstatuserrordomain Avaudioplayer a li li a href Nsosstatuserrordomain a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might relatedl have Meta Discuss the workings and policies of this site nsosstatuserrordomain error codes About Us Learn more about Stack Overflow the company Business Learn more about nsosstatuserrordomain code hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x