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?
AVAudioPlayer
and I've implemented the remote controls withUIEventTypeRemoteControl
. Do I have to useMPNowPlayingInfoCenter
to display the duration and title? Also, for seeking the time, are you happy to use those two<<
and>>
buttons? I've got them working! :D – Amarillo