Swift 如何读取commandCenter时间滑块?
我现在用这段代码输入PlayingInfo,它可以工作,但是当用户在commandCenter中更改歌曲的当前时间时,我也应该更改播放器的当前时间,为此,我需要在commandCenter中读取时间滑块的值,如何读取commandCenter的时间滑块的当前值Swift 如何读取commandCenter时间滑块?,swift,Swift,我现在用这段代码输入PlayingInfo,它可以工作,但是当用户在commandCenter中更改歌曲的当前时间时,我也应该更改播放器的当前时间,为此,我需要在commandCenter中读取时间滑块的值,如何读取commandCenter的时间滑块的当前值 nowPlayingInfo[MPNowPlayingInfoPropertyElapsedPlaybackTime] = player.currentTime
nowPlayingInfo[MPNowPlayingInfoPropertyElapsedPlaybackTime] = player.currentTime