iOS中的音频服务和音频AVAudioPlayer音频播放器使用指南

2020-01-15 15:34:05刘景俊

}  
- (void)audioPlayerDecodeErrorDidOccur:(AVAudioPlayer*)player error:(NSError *)error{  
    //解码错误执行的动作  
}  
- (void)audioPlayerBeginInteruption:(AVAudioPlayer*)player{  
    //处理中断的代码  
}  
- (void)audioPlayerEndInteruption:(AVAudioPlayer*)player{  
    //处理中断结束的代码  
}  
了解了这些,你可以尝试着做一个本地播放器。

注:相关教程知识阅读请移步到IOS开发频道。