I want to be able to seek forward and backward from the lock screen. The code is pretty simple:
MPRemoteCommandCenter *commandCenter = [MPRemoteCommandCenter sharedCommandCenter];
[commandCenter.seekForwardCommand addTargetWithHandler:^MPRemoteCommandHandlerStatus(MPRemoteCommandEvent *event) {
/// seek forward
return MPRemoteCommandHandlerStatusSuccess;
}];
[commandCenter.seekBackwardCommand addTargetWithHandler:^MPRemoteCommandHandlerStatus(MPRemoteCommandEvent *event) {
/// seek backward
return MPRemoteCommandHandlerStatusSuccess;
}];
However on the lock screen the playback progress view is not seek-able.
Here is a similar issue, but I need to use MPRemoteCommandCenter
(to disable some of default controls). May be somebody can help us both)