VLCMovieViewController.h 3.36 KB
Newer Older
1 2 3 4
/*****************************************************************************
 * VLCMovieViewController.h
 * VLC for iOS
 *****************************************************************************
5
 * Copyright (c) 2013-2017 VideoLAN. All rights reserved.
6 7 8 9 10 11 12
 * $Id$
 *
 * Authors: Felix Paul Kühne <fkuehne # videolan.org>
 *          Gleb Pinigin <gpinigin # gmail.com>
 *
 * Refer to the COPYING file of the official project for license.
 *****************************************************************************/
Felix Paul Kühne's avatar
Felix Paul Kühne committed
13

14
#import <MediaPlayer/MediaPlayer.h>
15
#import "VLCFrostedGlasView.h"
16
#import "VLCPlaybackController.h"
Felix Paul Kühne's avatar
Felix Paul Kühne committed
17

18
@class OBSlider;
19
@class VLCService;
20 21
@class VLCStatusLabel;
@class VLCVerticalSwipeGestureRecognizer;
22
@class VLCMovieViewControlPanelView;
23
@class VLCMovieViewController;
24

25 26 27 28 29 30
typedef NS_ENUM(NSInteger, VLCMovieJumpState) {
    VLCMovieJumpStateDefault,
    VLCMovieJumpStateForward,
    VLCMovieJumpStateBackward
};

31 32 33 34 35
@protocol VLCMovieViewControllerDelegate
- (void)movieViewControllerDidSelectMinimize:(VLCMovieViewController *)movieViewController;
- (BOOL)movieViewControllerShouldBeDisplayed:(VLCMovieViewController *)movieViewController;
@end

36
@interface VLCMovieViewController : UIViewController <UIActionSheetDelegate, VLCPlaybackControllerDelegate>
Felix Paul Kühne's avatar
Felix Paul Kühne committed
37

Felix Paul Kühne's avatar
Felix Paul Kühne committed
38
@property (nonatomic, strong) IBOutlet UIView *movieView;
39
@property (nonatomic, strong) IBOutlet VLCStatusLabel *statusLabel;
Felix Paul Kühne's avatar
Felix Paul Kühne committed
40

41
@property (nonatomic, strong) IBOutlet VLCFrostedGlasView *videoFilterView;
42 43 44 45 46 47 48 49 50 51
@property (nonatomic, strong) IBOutlet UILabel *hueLabel;
@property (nonatomic, strong) IBOutlet UISlider *hueSlider;
@property (nonatomic, strong) IBOutlet UILabel *contrastLabel;
@property (nonatomic, strong) IBOutlet UISlider *contrastSlider;
@property (nonatomic, strong) IBOutlet UILabel *brightnessLabel;
@property (nonatomic, strong) IBOutlet UISlider *brightnessSlider;
@property (nonatomic, strong) IBOutlet UILabel *saturationLabel;
@property (nonatomic, strong) IBOutlet UISlider *saturationSlider;
@property (nonatomic, strong) IBOutlet UILabel *gammaLabel;
@property (nonatomic, strong) IBOutlet UISlider *gammaSlider;
52
@property (nonatomic, strong) IBOutlet UIButton *resetVideoFilterButton;
53

54
@property (nonatomic, strong) IBOutlet VLCFrostedGlasView *scrubIndicatorView;
55 56 57
@property (nonatomic, strong) IBOutlet UILabel *currentScrubSpeedLabel;
@property (nonatomic, strong) IBOutlet UILabel *scrubHelpLabel;

58 59 60
@property (nonatomic, strong) IBOutlet UILabel *artistNameLabel;
@property (nonatomic, strong) IBOutlet UILabel *albumNameLabel;
@property (nonatomic, strong) IBOutlet UILabel *trackNameLabel;
61
@property (nonatomic, strong) IBOutlet UIImageView *artworkImageView;
62
@property (nonatomic, strong) IBOutlet NSLayoutConstraint *widthConstraint;
63
@property (nonatomic, strong) IBOutlet UIActivityIndicatorView *activityIndicator;
64

65 66
@property (nonatomic, weak) id<VLCMovieViewControllerDelegate> delegate;

67 68
- (instancetype)initWithServices:(VLCService *)services;

69
- (IBAction)positionSliderAction:(id)sender;
70 71 72
- (IBAction)positionSliderTouchDown:(id)sender;
- (IBAction)positionSliderTouchUp:(id)sender;
- (IBAction)positionSliderDrag:(id)sender;
73
- (IBAction)toggleTimeDisplay:(id)sender;
74

75 76
- (IBAction)videoFilterSliderAction:(id)sender;

77 78
- (IBAction)videoDimensionAction:(id)sender;

79
- (void)toggleRepeatMode;
Soomin Lee's avatar
Soomin Lee committed
80
- (void)toggleShuffleMode;
81 82 83 84 85
- (void)toggleEqualizer;
- (void)toggleUILock;
- (void)toggleChapterAndTitleSelector;
- (void)hideMenu;

Felix Paul Kühne's avatar
Felix Paul Kühne committed
86
@end