VLCPlayerDisplayController.h 1.54 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
/*****************************************************************************
 * VLCPlayerDisplayController.h
 * VLC for iOS
 *****************************************************************************
 * Copyright (c) 2015 VideoLAN. All rights reserved.
 * $Id$
 *
 * Authors: Tobias Conradi <videolan # tobias-conradi.de>
 *
 * Refer to the COPYING file of the official project for license.
 *****************************************************************************/

@class VLCPlaybackController;
14
@class VLCService;
15 16 17 18 19 20

typedef NS_ENUM(NSUInteger, VLCPlayerDisplayControllerDisplayMode) {
    VLCPlayerDisplayControllerDisplayModeFullscreen,
    VLCPlayerDisplayControllerDisplayModeMiniplayer,
};

21 22 23 24 25 26 27
@protocol VLCMiniPlaybackViewInterface <NSObject>

@required;
@property (nonatomic) BOOL visible;

@end

28
@protocol VLCPlayerDisplayControllerDelegate
29

30
@end
31

32
@interface VLCPlayerDisplayController : UIViewController
33 34 35

@property (nonatomic, assign) VLCPlayerDisplayControllerDisplayMode displayMode;
@property (nonatomic, weak) VLCPlaybackController *playbackController;
36
@property (nonatomic, strong) NSLayoutYAxisAnchor *realBottomAnchor;
37

38 39 40 41 42 43 44
- (instancetype)init NS_UNAVAILABLE;
- (instancetype)initWithNibName:(NSString *)nibNameOrNil
                         bundle:(NSBundle *)nibBundleOrNil NS_UNAVAILABLE;
- (instancetype)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE;

- (instancetype)initWithServices:(id)services NS_DESIGNATED_INITIALIZER;

45 46 47
- (void)showFullscreenPlayback;
- (void)closeFullscreenPlayback;

48 49 50
- (void)pushPlaybackView;
- (void)dismissPlaybackView;

51
@end