VLCMovieViewController.h 6.05 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 *sleepTimerButton;
37
@property (nonatomic, strong) IBOutlet UINavigationBar *toolbar;
38
@property (nonatomic, strong) IBOutlet VLCFrostedGlasView *controllerPanel;
39
@property (nonatomic, strong) IBOutlet VLCFrostedGlasView *controllerPanelLandscape;
40
@property (nonatomic, strong) IBOutlet VLCStatusLabel *statusLabel;
41
@property (nonatomic, strong) IBOutlet MPVolumeView *volumeView;
42
@property (nonatomic, strong) IBOutlet MPVolumeView *volumeViewLandscape;
Felix Paul Kühne's avatar
Felix Paul Kühne committed
43 44 45 46 47

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

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

63
@property (nonatomic, strong) IBOutlet VLCFrostedGlasView *playbackSpeedView;
64
@property (nonatomic, strong) IBOutlet UIButton *playbackSpeedButton;
65
@property (nonatomic, strong) IBOutlet UIButton *playbackSpeedButtonLandscape;
66 67 68
@property (nonatomic, strong) IBOutlet UISlider *playbackSpeedSlider;
@property (nonatomic, strong) IBOutlet UILabel *playbackSpeedLabel;
@property (nonatomic, strong) IBOutlet UILabel *playbackSpeedIndicator;
69 70 71 72 73 74
@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;
75
@property (nonatomic, strong) IBOutlet UIButton *aspectRatioButton;
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
@property (nonatomic, strong) MLFile *fileFromMediaLibrary;
88
@property (nonatomic, strong) NSURL *url;
89
@property (nonatomic, strong) NSURL *successCallback;
90
@property (nonatomic, strong) NSURL *errorCallback;
91
@property (nonatomic, strong) NSString *pathToExternalSubtitlesFile;
92
@property (nonatomic, retain) VLCMediaList *mediaList;
93
@property (nonatomic, strong) VLCMediaPlayer *mediaPlayer;
94
@property (nonatomic, readwrite) int itemInMediaListToBePlayedFirst;
Felix Paul Kühne's avatar
Felix Paul Kühne committed
95

96 97 98
/* returns nil if currenlty plaing item is not a MLFile, e.g. a url */
@property (nonatomic, strong, readonly) MLFile *currentlyPlayingMediaFile;

99
- (IBAction)closePlayback:(id)sender;
100
- (void)unanimatedPlaybackStop;
101

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

108
- (IBAction)playPause;
109 110
- (IBAction)backward:(id)sender;
- (IBAction)forward:(id)sender;
111
- (IBAction)switchTrack:(id)sender;
112
- (IBAction)sleepTimer:(id)sender;
113
- (IBAction)moreActions:(id)sender;
114

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

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

121 122 123 124
- (void)toggleRepeatMode;
- (void)toggleEqualizer;
- (void)toggleUILock;
- (void)toggleChapterAndTitleSelector;
125
- (void)toggleShuffleMode;
126 127
- (void)hideMenu;

128 129
- (BOOL)rotationIsDisabled;

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