VLCMovieViewController.h 6.01 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"
Felix Paul Kühne's avatar
Felix Paul Kühne committed
16

17 18 19 20 21 22
@class OBSlider;
@class VLCStatusLabel;
@class VLCHorizontalSwipeGestureRecognizer;
@class VLCVerticalSwipeGestureRecognizer;

@interface VLCMovieViewController : UIViewController <VLCMediaPlayerDelegate, UIActionSheetDelegate>
Felix Paul Kühne's avatar
Felix Paul Kühne committed
23

Felix Paul Kühne's avatar
Felix Paul Kühne committed
24 25
@property (nonatomic, strong) IBOutlet UIView *movieView;
@property (nonatomic, strong) IBOutlet UIBarButtonItem *backButton;
26
@property (nonatomic, strong) IBOutlet OBSlider *positionSlider;
27
@property (nonatomic, strong) IBOutlet UIButton *timeDisplay;
Felix Paul Kühne's avatar
Felix Paul Kühne committed
28
@property (nonatomic, strong) IBOutlet UIButton *playPauseButton;
29
@property (nonatomic, strong) IBOutlet UIButton *playPauseButtonLandscape;
Felix Paul Kühne's avatar
Felix Paul Kühne committed
30
@property (nonatomic, strong) IBOutlet UIButton *bwdButton;
31
@property (nonatomic, strong) IBOutlet UIButton *bwdButtonLandscape;
Felix Paul Kühne's avatar
Felix Paul Kühne committed
32
@property (nonatomic, strong) IBOutlet UIButton *fwdButton;
33
@property (nonatomic, strong) IBOutlet UIButton *fwdButtonLandscape;
34 35
@property (nonatomic, strong) IBOutlet UIButton *trackSwitcherButton;
@property (nonatomic, strong) IBOutlet UIButton *trackSwitcherButtonLandscape;
36
@property (nonatomic, strong) IBOutlet UIButton *repeatButton;
37
@property (nonatomic, strong) IBOutlet UIButton *repeatButtonLandscape;
38 39
@property (nonatomic, strong) IBOutlet UIButton *lockButton;
@property (nonatomic, strong) IBOutlet UIButton *lockButtonLandscape;
40 41
@property (nonatomic, strong) IBOutlet UIButton *chapterButton;
@property (nonatomic, strong) IBOutlet UIButton *chapterButtonLandscape;
42
@property (nonatomic, strong) IBOutlet UIButton *equalizerButton;
43
@property (nonatomic, strong) IBOutlet UINavigationBar *toolbar;
44
@property (nonatomic, strong) IBOutlet VLCFrostedGlasView *controllerPanel;
45
@property (nonatomic, strong) IBOutlet VLCFrostedGlasView *controllerPanelLandscape;
46
@property (nonatomic, strong) IBOutlet VLCStatusLabel *statusLabel;
47
@property (nonatomic, strong) IBOutlet MPVolumeView *volumeView;
48
@property (nonatomic, strong) IBOutlet MPVolumeView *volumeViewLandscape;
Felix Paul Kühne's avatar
Felix Paul Kühne committed
49 50 51 52 53

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

54
@property (nonatomic, strong) IBOutlet VLCFrostedGlasView *videoFilterView;
55
@property (nonatomic, strong) IBOutlet UIButton *videoFilterButton;
56
@property (nonatomic, strong) IBOutlet UIButton *videoFilterButtonLandscape;
57 58 59 60 61 62 63 64 65 66
@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;
67
@property (nonatomic, strong) IBOutlet UIButton *resetVideoFilterButton;
68

69
@property (nonatomic, strong) IBOutlet VLCFrostedGlasView *playbackSpeedView;
70
@property (nonatomic, strong) IBOutlet UIButton *playbackSpeedButton;
71
@property (nonatomic, strong) IBOutlet UIButton *playbackSpeedButtonLandscape;
72 73 74
@property (nonatomic, strong) IBOutlet UISlider *playbackSpeedSlider;
@property (nonatomic, strong) IBOutlet UILabel *playbackSpeedLabel;
@property (nonatomic, strong) IBOutlet UILabel *playbackSpeedIndicator;
75 76 77 78 79 80
@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;
81 82
@property (nonatomic, strong) IBOutlet UIButton *aspectRatioButton;

83
@property (nonatomic, strong) IBOutlet VLCFrostedGlasView *scrubIndicatorView;
84 85 86
@property (nonatomic, strong) IBOutlet UILabel *currentScrubSpeedLabel;
@property (nonatomic, strong) IBOutlet UILabel *scrubHelpLabel;

87 88 89
@property (nonatomic, strong) IBOutlet UILabel *artistNameLabel;
@property (nonatomic, strong) IBOutlet UILabel *albumNameLabel;
@property (nonatomic, strong) IBOutlet UILabel *trackNameLabel;
90
@property (nonatomic, strong) IBOutlet UIImageView *artworkImageView;
91

92
@property (nonatomic, strong) MLFile *fileFromMediaLibrary;
93
@property (nonatomic, strong) NSURL *url;
94
@property (nonatomic, strong) NSURL *successCallback;
95
@property (nonatomic, strong) NSString *pathToExternalSubtitlesFile;
96
@property (nonatomic, retain) VLCMediaList *mediaList;
97
@property (nonatomic, readwrite) int itemInMediaListToBePlayedFirst;
Felix Paul Kühne's avatar
Felix Paul Kühne committed
98

99
- (IBAction)closePlayback:(id)sender;
100

101
- (IBAction)positionSliderAction:(id)sender;
102 103 104
- (IBAction)positionSliderTouchDown:(id)sender;
- (IBAction)positionSliderTouchUp:(id)sender;
- (IBAction)positionSliderDrag:(id)sender;
105
- (IBAction)toggleTimeDisplay:(id)sender;
106

107
- (IBAction)playPause;
108 109
- (IBAction)backward:(id)sender;
- (IBAction)forward:(id)sender;
110
- (IBAction)toggleRepeatMode:(id)sender;
111
- (IBAction)switchTrack:(id)sender;
112
- (IBAction)lock:(id)sender;
113
- (IBAction)switchChapter:(id)sender;
114
- (IBAction)equalizer:(id)sender;
115

116 117 118
- (IBAction)videoFilterToggle:(id)sender;
- (IBAction)videoFilterSliderAction:(id)sender;

119
- (IBAction)playbackSliderAction:(id)sender;
120 121
- (IBAction)videoDimensionAction:(id)sender;

122 123
- (BOOL)rotationIsDisabled;

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