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