开发者

MP3 file not playing in Iphone/Ipad

I am palying MP3 files in my application using code

NSString *filePath = [[NSBundle mainBundle] pathForAuxiliaryExecutable:@"congratulation.MP开发者_JAVA百科3"];
NSURL *fileURL = [[NSURL alloc] initFileURLWithPath:filePath];
audioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:fileURL error:nil];
[audioPlayer prepareToPlay];
audioPlayer.currentTime = 0;
[audioPlayer play];     

I am playing 15 MP3 files All playing well, but one file is not playing it is playing very well i itunes but not in my app Any solution for this strange problem.

Amit Battan


I have to replace the MP3 files

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜