Я работаю с музыкой Apple и использую MPMusicPlayerController.systemMusicPlayer
для воспроизведения музыки с уникальной песней id(870697325)
.некоторые песни работают нормально, но некоторые не работают.он просто отображает nil
и 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
?Могу ли я сыграть одну и ту же песню из Indian Apple id
и UK Apple id
?Любая помощь будет оценена.