gpt4 book ai didi

iphone - AVAudioPlayer 和 MPMusicPlayerController 有什么区别?

转载 作者:行者123 更新时间:2023-12-03 18:45:34 24 4
gpt4 key购买 nike

看起来它们都可以播放音频文件。AVAudioPlayer 和 MPMusicPlayerController 有什么区别?

欢迎大家留言

谢谢交互开发

最佳答案

阅读类引用

MPMusicPlayerController:http://developer.apple.com/iphone/library/documentation/mediaplayer/reference/MPMusicPlayerController_ClassReference/Reference/Reference.html

You use an MPMusicPlayerController object, or music player, to play media items from the iPod library.

AVAudioPlayer:http://developer.apple.com/iphone/library/documentation/AVFoundation/Reference/AVAudioPlayerClassReference/Reference/Reference.html

An instance of the AVAudioPlayer class, called an audio player, provides playback of audio data from a file or memory.

Apple recommends that you use this class for audio playback unless you are playing audio captured from a network stream or require very low I/O latency.

关于iphone - AVAudioPlayer 和 MPMusicPlayerController 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3455522/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com