MPMusicPlayerController
我对的playbackState
属性有一些疑问。
在文档中,MPMusicPlaybackStateInterrupted
定义MPMusicPlaybackStatePaused
如下:
MPMusicPlaybackStateInterrupted
音乐播放器已被中断,例如来电。
MPMusicPlaybackStatePaused
音乐播放器暂停。
我无法查看来电,因为我现在没有 iPhone。
但只有几次我在MPMusicPlaybackStateInterrupted
用 iPod touch 播放音乐时得到状态。
(不知道为什么会出现中断状态。除了播放音乐,没有来电,也没有其他操作)。
在那些时候,MPMusicPlayerController
只是暂停播放音乐。
Question1和 和
有什么不一样?MPMusicPlaybackStateInterrupted
MPMusicPlaybackStatePaused
Question2除了来电外,
什么时候会发生?MPMusicPlaybackStateInterrupted
Question3
拿到后该怎么办MPMusicPlaybackStateInterrupted
?
例如,当我得到MPMusicPlaybackStatePaused
or时MPMusicPlaybackStateStopped
,我应该更改播放/暂停按钮。