I have the following dictionary for MPNowPlayingInfoCenter
@{MPMediaItemPropertyAlbumTitle: @"First Title",
MPMediaItemPropertyArtwork: [[MPMediaItemArtwork alloc] initWithImage:[UIImage imageNamed:@"Album-Cover.jpg"]],
MPMediaItemPropertyPlaybackDuration:[NSNumber numberWithDouble:self.storyAudioPlayer.duration],
MPNowPlayingInfoPropertyElapsedPlaybackTime:[NSNumber numberWithDouble:self.storyAudioPlayer.currentTime],
MPNowPlayingInfoPropertyPlaybackRate:@1.0
}
Everything else is working fine but I can't seek songs using the slider. As shown in the image. What parameter am I missing?
You can do it on iOS 9.1 and higher with help of MPRemoteCommandCenter and changePlaybackPositionCommand.
See my answer
You can't. You could file a bug report to Apple so that they implement it someday.
EDIT: It's now possible to do it since iOS 9
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With