VLCRemoteControlService.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. - (void)remoteControlService:(VLCRemoteControlService *)rcs setCurrentPlaybackTime:(NSTimeInterval)playbackTime;
  25. @end
  26. @interface VLCRemoteControlService : NSObject
  27. @property (nonatomic, weak) id<VLCRemoteControlServiceDelegate> remoteControlServiceDelegate;
  28. - (void)subscribeToRemoteCommands;
  29. - (void)unsubscribeFromRemoteCommands;
  30. @end