VLCRemoteControlService.h 1.69 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
/*****************************************************************************
 * VLCRemoteControlService.h
 * VLC for iOS
 *****************************************************************************
 * Copyright (c) 2017 VideoLAN. All rights reserved.
 * $Id$
 *
 * Authors: Carola Nitz <nitz.carola # gmail.com>
 *
 * Refer to the COPYING file of the official project for license.
 *****************************************************************************/

@class VLCRemoteControlService;

@protocol VLCRemoteControlServiceDelegate

- (void)remoteControlServiceHitPlay:(VLCRemoteControlService *)rcs;
- (void)remoteControlServiceHitPause:(VLCRemoteControlService *)rcs;
- (void)remoteControlServiceTogglePlayPause:(VLCRemoteControlService *)rcs;
- (void)remoteControlServiceHitStop:(VLCRemoteControlService *)rcs;
- (BOOL)remoteControlServiceHitPlayNextIfPossible:(VLCRemoteControlService *)rcs;
- (BOOL)remoteControlServiceHitPlayPreviousIfPossible:(VLCRemoteControlService *)rcs;
- (void)remoteControlService:(VLCRemoteControlService *)rcs jumpForwardInSeconds:(NSTimeInterval)seconds;
- (void)remoteControlService:(VLCRemoteControlService *)rcs jumpBackwardInSeconds:(NSTimeInterval)seconds;
- (NSInteger)remoteControlServiceNumberOfMediaItemsinList:(VLCRemoteControlService *)rcs;
- (void)remoteControlService:(VLCRemoteControlService *)rcs setPlaybackRate:(CGFloat)playbackRate;
27
- (void)remoteControlService:(VLCRemoteControlService *)rcs setCurrentPlaybackTime:(NSTimeInterval)playbackTime;
28 29 30 31 32 33 34 35 36 37 38

@end

@interface VLCRemoteControlService : NSObject

@property (nonatomic, weak) id<VLCRemoteControlServiceDelegate> remoteControlServiceDelegate;

- (void)subscribeToRemoteCommands;
- (void)unsubscribeFromRemoteCommands;

@end