我真的尝试打开它,但没有成功;)有没有办法做到这一点?
这就是我设置遥控器的方式:
private func setupRemoteControl() {
commandCenter.previousTrackCommand.isEnabled = false
commandCenter.nextTrackCommand.isEnabled = false
commandCenter.skipBackwardCommand.isEnabled = false
commandCenter.skipForwardCommand.isEnabled = false
commandCenter.seekForwardCommand.isEnabled = true
commandCenter.seekBackwardCommand.isEnabled = true
commandCenter.changePlaybackPositionCommand.isEnabled = true
commandCenter.playCommand.isEnabled = true
commandCenter.pauseCommand.isEnabled = true
commandCenter.playCommand.addTarget(self, action: #selector(play))
commandCenter.pauseCommand.addTarget(self, action: #selector(pause))
}
我想念什么?
暂停和播放完美。