我正在使用 Apple 音乐并MPMusicPlayerController.systemMusicPlayer
用于播放带有独特歌曲的音乐id(870697325)
。有些歌曲工作正常,但有些歌曲不起作用。它只显示nil
and stops
。我已经打印了日志,请找到它亲爱的。
PlaybackStateDidChange------------nil---
PlaybackStateDidChange-----------playing----
Nil items
PlayingItemDidChange-----------playing----
Current durations :- 0.0 || Player durations :- 0.0 || Progress :- nan
Current durations :- 0.0 || Player durations :- 0.0 || Progress :- nan
PlayingItemDidChange-----------playing----
audioStreamingDidLogin
Current durations :- 266.0 || Player durations :- 0.0 || Progress :- 0.0
Current durations :- 266.0 || Player durations :- 0.0 || Progress :- 0.0
Current durations :- 266.0 || Player durations :- 0.0 || Progress :- 0.0
Current durations :- 266.0 || Player durations :- 0.0 || Progress :- 0.0
Current durations :- 266.0 || Player durations :- 0.0 || Progress :- 0.0
prepareToPlay----------------
PlaybackStateDidChange----------stopped-----
2018-10-22 11:40:41.162172+0530 ChuneApp[346:27769] [Middleware] FINISH Request: <MPCPlayerRequest: 0x125e3be90 label=MPMusicPlayerController playerPath=<MPCPlayerPath: route=<MPAVEndpointRoute: 0x123e3c480 name=iPhone uid=LOCAL> bundleID=com.apple.Music [system media app] playerID=Music>> Response: (null) [0.025357s] error: Error Domain=MPRequestErrorDomain Code=1 "(null)" UserInfo={MPRequestUnderlyingErrorsUserInfoKey=(
"Error Domain=MPCPlayerRequestErrorDomain Code=2000 \"Failed to get playing identifer\" UserInfo={NSDebugDescription=Failed to get playing identifer}"
)}
2018-10-22 11:40:41.173490+0530 ChuneApp[346:26654] [Middleware] RRC <MPCPlayerRequest 0x123d12860>: Request failed with error: Error Domain=MPRequestErrorDomain Code=1 "(null)" UserInfo={MPRequestUnderlyingErrorsUserInfoKey=(
"Error Domain=MPCPlayerRequestErrorDomain Code=2000 \"Failed to get playing identifer\" UserInfo={NSDebugDescription=Failed to get playing identifer}"
)}
PlaybackStateDidChange------------nil---
apple
id有什么问题吗?我可以从Indian Apple id
and播放同一首歌曲UK Apple id
吗?任何帮助将不胜感激。