VLCMovieViewController.h 5.48 KB
Newer Older
1 2 3 4
/*****************************************************************************
 * VLCMovieViewController.h
 * VLC for iOS
 *****************************************************************************
5
 * Copyright (c) 2013-2015 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 19 20 21
@class OBSlider;
@class VLCStatusLabel;
@class VLCHorizontalSwipeGestureRecognizer;
@class VLCVerticalSwipeGestureRecognizer;
22
@class VLCTimeNavigationTitleView;
23

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

Felix Paul Kühne's avatar
Felix Paul Kühne committed
26 27
@property (nonatomic, strong) IBOutlet UIView *movieView;
@property (nonatomic, strong) IBOutlet UIBarButtonItem *backButton;
28
@property (nonatomic, strong) IBOutlet VLCTimeNavigationTitleView *timeNavigationTitleView;
Felix Paul Kühne's avatar
Felix Paul Kühne committed
29
@property (nonatomic, strong) IBOutlet UIButton *playPauseButton;
30
@property (nonatomic, strong) IBOutlet UIButton *playPauseButtonLandscape;
Felix Paul Kühne's avatar
Felix Paul Kühne committed
31
@property (nonatomic, strong) IBOutlet UIButton *bwdButton;
32
@property (nonatomic, strong) IBOutlet UIButton *bwdButtonLandscape;
Felix Paul Kühne's avatar
Felix Paul Kühne committed
33
@property (nonatomic, strong) IBOutlet UIButton *fwdButton;
34
@property (nonatomic, strong) IBOutlet UIButton *fwdButtonLandscape;
35 36
@property (nonatomic, strong) IBOutlet UIButton *trackSwitcherButton;
@property (nonatomic, strong) IBOutlet UIButton *trackSwitcherButtonLandscape;
37
@property (nonatomic, strong) IBOutlet UIButton *sleepTimerButton;
38
@property (nonatomic, strong) IBOutlet UINavigationBar *toolbar;
39
@property (nonatomic, strong) IBOutlet VLCFrostedGlasView *controllerPanel;
40
@property (nonatomic, strong) IBOutlet VLCFrostedGlasView *controllerPanelLandscape;
41
@property (nonatomic, strong) IBOutlet VLCStatusLabel *statusLabel;
42
@property (nonatomic, strong) IBOutlet MPVolumeView *volumeView;
43
@property (nonatomic, strong) IBOutlet MPVolumeView *volumeViewLandscape;
Felix Paul Kühne's avatar
Felix Paul Kühne committed
44 45 46 47 48

@property (nonatomic, strong) IBOutlet UIView *playingExternallyView;
@property (nonatomic, strong) IBOutlet UILabel *playingExternallyTitle;
@property (nonatomic, strong) IBOutlet UILabel *playingExternallyDescription;

49
@property (nonatomic, strong) IBOutlet VLCFrostedGlasView *videoFilterView;
50
@property (nonatomic, strong) IBOutlet UIButton *videoFilterButton;
51
@property (nonatomic, strong) IBOutlet UIButton *videoFilterButtonLandscape;
52 53 54 55 56 57 58 59 60 61
@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;
62
@property (nonatomic, strong) IBOutlet UIButton *resetVideoFilterButton;
63

64
@property (nonatomic, strong) IBOutlet VLCFrostedGlasView *playbackSpeedView;
65
@property (nonatomic, strong) IBOutlet UIButton *playbackSpeedButton;
66
@property (nonatomic, strong) IBOutlet UIButton *playbackSpeedButtonLandscape;
67 68 69
@property (nonatomic, strong) IBOutlet UISlider *playbackSpeedSlider;
@property (nonatomic, strong) IBOutlet UILabel *playbackSpeedLabel;
@property (nonatomic, strong) IBOutlet UILabel *playbackSpeedIndicator;
70 71 72 73 74 75
@property (nonatomic, strong) IBOutlet UISlider *audioDelaySlider;
@property (nonatomic, strong) IBOutlet UILabel *audioDelayLabel;
@property (nonatomic, strong) IBOutlet UILabel *audioDelayIndicator;
@property (nonatomic, strong) IBOutlet UISlider *spuDelaySlider;
@property (nonatomic, strong) IBOutlet UILabel *spuDelayLabel;
@property (nonatomic, strong) IBOutlet UILabel *spuDelayIndicator;
76
@property (nonatomic, strong) IBOutlet UIButton *moreActionsButton;
77

78
@property (nonatomic, strong) IBOutlet VLCFrostedGlasView *scrubIndicatorView;
79 80 81
@property (nonatomic, strong) IBOutlet UILabel *currentScrubSpeedLabel;
@property (nonatomic, strong) IBOutlet UILabel *scrubHelpLabel;

82 83 84
@property (nonatomic, strong) IBOutlet UILabel *artistNameLabel;
@property (nonatomic, strong) IBOutlet UILabel *albumNameLabel;
@property (nonatomic, strong) IBOutlet UILabel *trackNameLabel;
85
@property (nonatomic, strong) IBOutlet UIImageView *artworkImageView;
86

87 88
@property (nonatomic, weak) IBOutlet VLCPlaybackController *playbackController;

89
- (IBAction)closePlayback:(id)sender;
90

91
- (IBAction)positionSliderAction:(id)sender;
92 93 94
- (IBAction)positionSliderTouchDown:(id)sender;
- (IBAction)positionSliderTouchUp:(id)sender;
- (IBAction)positionSliderDrag:(id)sender;
95
- (IBAction)toggleTimeDisplay:(id)sender;
96

97
- (IBAction)playPause;
98 99
- (IBAction)backward:(id)sender;
- (IBAction)forward:(id)sender;
100
- (IBAction)switchTrack:(id)sender;
101
- (IBAction)sleepTimer:(id)sender;
102
- (IBAction)moreActions:(id)sender;
103

104 105 106
- (IBAction)videoFilterToggle:(id)sender;
- (IBAction)videoFilterSliderAction:(id)sender;

107
- (IBAction)playbackSliderAction:(id)sender;
108 109
- (IBAction)videoDimensionAction:(id)sender;

110 111 112 113
- (void)toggleRepeatMode;
- (void)toggleEqualizer;
- (void)toggleUILock;
- (void)toggleChapterAndTitleSelector;
114
- (void)toggleShuffleMode;
115 116
- (void)hideMenu;

117 118
- (BOOL)rotationIsDisabled;

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