2010-11-01 9 views
0

Je palying fichiers MP3 dans mon application en utilisant le codefichier MP3 ne joue pas dans Iphone/Ipad

NSString *filePath = [[NSBundle mainBundle] pathForAuxiliaryExecutable:@"congratulation.MP3"]; 
NSURL *fileURL = [[NSURL alloc] initFileURLWithPath:filePath]; 
audioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:fileURL error:nil]; 
[audioPlayer prepareToPlay]; 
audioPlayer.currentTime = 0; 
[audioPlayer play];  

Je joue 15 fichiers MP3 Tout en jouant bien, mais un fichier ne joue pas, il est très bien joué je iTunes mais pas dans mon application Toute solution pour ce problème étrange.

Amit Battan

Répondre

0

Je dois remplacer les fichiers MP3

Questions connexes