MPMusicPlayerController

MPMusicPlayerController

在最新的iOS更新之后,对MPMusicPlayerController的setCurrentPlaybackRate的调用停止了工作,现在出现此错误:

2018-04-15 16:24:06.904562-0600 SampleProject[5659:1836398] [SDKPlayback] -
[MPMusicPlayerController setCurrentPlaybackRate:0.670213] completed error:
Error Domain=MPCPlayerRequestErrorDomain Code=1 "No commands provided."
UserInfo={NSDebugDescription=No commands provided.}

我传递的是大于0且小于2的有效double值。

这是电话:
[appMusicPlayer setCurrentPlaybackRate:0.7];

感谢您的任何输入或帮助!

P.S.我也收到很多其他奇怪的错误。这里有一些:
2018-04-15 17:30:01.976932-0600 SampleProject[5733:1868672] [SDKPlayback]
Failed validators: {(
     setRepeatMode
)}
2018-04-15 17:30:03.976879-0600 SampleProject[5733:1868672] [SDKPlayback]
Failed to get a valid response. Resetting expectations.

2018-04-15 17:30:01.976932-0600 SampleProject[5733:1868672] [SDKPlayback]
Failed validators: {(
    setRepeatMode
)}
2018-04-15 17:30:03.976879-0600 SampleProject[5733:1868672] [SDKPlayback]
Failed to get a valid response. Resetting expectations.

最佳答案

尝试使用player.append(MPMusicPlayerQueueDescriptor)时,我遇到了同样的问题。我发现当MPMusicPlayerController的队列很大时,它将返回相同的错误。当我将其减少到10左右时,它没有任何问题。我没有尝试查看可以添加到队列中的最大值。

我希望这会有所帮助,也许较小的队列也将为您工作。

关于ios - MPMusicPlayerController setCurrentPlaybackRate,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/49847423/

10-08 23:54