VLCRemoteControlService.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*****************************************************************************
  2. * VLCRemoteControlService.h
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2017 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Authors: Carola Nitz <nitz.carola # gmail.com>
  9. *
  10. * Refer to the COPYING file of the official project for license.
  11. *****************************************************************************/
  12. @class VLCRemoteControlService;
  13. @protocol VLCRemoteControlServiceDelegate
  14. - (void)remoteControlServiceHitPlay:(VLCRemoteControlService *)rcs;
  15. - (void)remoteControlServiceHitPause:(VLCRemoteControlService *)rcs;
  16. - (void)remoteControlServiceTogglePlayPause:(VLCRemoteControlService *)rcs;
  17. - (void)remoteControlServiceHitStop:(VLCRemoteControlService *)rcs;
  18. - (BOOL)remoteControlServiceHitPlayNextIfPossible:(VLCRemoteControlService *)rcs;
  19. - (BOOL)remoteControlServiceHitPlayPreviousIfPossible:(VLCRemoteControlService *)rcs;
  20. - (void)remoteControlService:(VLCRemoteControlService *)rcs jumpForwardInSeconds:(NSTimeInterval)seconds;
  21. - (void)remoteControlService:(VLCRemoteControlService *)rcs jumpBackwardInSeconds:(NSTimeInterval)seconds;
  22. - (NSInteger)remoteControlServiceNumberOfMediaItemsinList:(VLCRemoteControlService *)rcs;
  23. - (void)remoteControlService:(VLCRemoteControlService *)rcs setPlaybackRate:(CGFloat)playbackRate;
  24. @end
  25. @interface VLCRemoteControlService : NSObject
  26. @property (nonatomic, weak) id<VLCRemoteControlServiceDelegate> remoteControlServiceDelegate;
  27. - (void)subscribeToRemoteCommands;
  28. - (void)unsubscribeFromRemoteCommands;
  29. @end