Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[IOS] media controlbar add support seek forward and rewind.

  • Loading branch information...
commit ad19633a7231cef57656f5ef84e7750db20a49e7 1 parent f4b1dbb
@ulion ulion authored
Showing with 16 additions and 0 deletions.
  1. +16 −0 xbmc/osx/ios/XBMCController.mm
View
16 xbmc/osx/ios/XBMCController.mm
@@ -951,6 +951,22 @@ - (void) remoteControlReceivedWithEvent: (UIEvent *) receivedEvent {
case UIEventSubtypeRemoteControlPreviousTrack:
CApplicationMessenger::Get().SendAction(ACTION_PREV_ITEM);
break;
+ case UIEventSubtypeRemoteControlBeginSeekingForward:
+ // use 4X speed forward.
+ CApplicationMessenger::Get().SendAction(ACTION_PLAYER_FORWARD);
+ CApplicationMessenger::Get().SendAction(ACTION_PLAYER_FORWARD);
+ break;
+ case UIEventSubtypeRemoteControlBeginSeekingBackward:
+ // use 4X speed rewind.
+ CApplicationMessenger::Get().SendAction(ACTION_PLAYER_REWIND);
+ CApplicationMessenger::Get().SendAction(ACTION_PLAYER_REWIND);
+ break;
+ case UIEventSubtypeRemoteControlEndSeekingForward:
+ case UIEventSubtypeRemoteControlEndSeekingBackward:
+ // restore to normal playback speed.
+ if (g_application.IsPlaying() && !g_application.IsPaused())
+ CApplicationMessenger::Get().SendAction(ACTION_PLAYER_PLAY);
+ break;
default:
LOG(@"unhandled subtype: %d", receivedEvent.subtype);
break;
Please sign in to comment.
Something went wrong with that request. Please try again.