VLCMovieViewController.h 5.38 KB
Newer Older
1 2 3 4
/*****************************************************************************
 * VLCMovieViewController.h
 * VLC for iOS
 *****************************************************************************
Felix Paul Kühne's avatar
Felix Paul Kühne committed
5
 * Copyright (c) 2013-2014 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
@property (nonatomic, strong) IBOutlet UIView *subtitleContainer;
35
@property (nonatomic, strong) IBOutlet UIView *subtitleContainerLandscape;
Felix Paul Kühne's avatar
Felix Paul Kühne committed
36
@property (nonatomic, strong) IBOutlet UIButton *subtitleSwitcherButton;
37
@property (nonatomic, strong) IBOutlet UIButton *subtitleSwitcherButtonLandscape;
Felix Paul Kühne's avatar
Felix Paul Kühne committed
38
@property (nonatomic, strong) IBOutlet UIButton *audioSwitcherButton;
39
@property (nonatomic, strong) IBOutlet UIButton *audioSwitcherButtonLandscape;
40
@property (nonatomic, strong) IBOutlet UIButton *repeatButton;
41
@property (nonatomic, strong) IBOutlet UIButton *repeatButtonLandscape;
42
@property (nonatomic, strong) IBOutlet UINavigationBar *toolbar;
43
@property (nonatomic, strong) IBOutlet VLCFrostedGlasView *controllerPanel;
44
@property (nonatomic, strong) IBOutlet VLCFrostedGlasView *controllerPanelLandscape;
45
@property (nonatomic, strong) IBOutlet VLCStatusLabel *statusLabel;
46
@property (nonatomic, strong) IBOutlet MPVolumeView *volumeView;
47
@property (nonatomic, strong) IBOutlet MPVolumeView *volumeViewLandscape;
Felix Paul Kühne's avatar
Felix Paul Kühne committed
48 49 50 51 52

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

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

68
@property (nonatomic, strong) IBOutlet VLCFrostedGlasView *playbackSpeedView;
69
@property (nonatomic, strong) IBOutlet UIButton *playbackSpeedButton;
70
@property (nonatomic, strong) IBOutlet UIButton *playbackSpeedButtonLandscape;
71 72 73 74 75
@property (nonatomic, strong) IBOutlet UISlider *playbackSpeedSlider;
@property (nonatomic, strong) IBOutlet UILabel *playbackSpeedLabel;
@property (nonatomic, strong) IBOutlet UILabel *playbackSpeedIndicator;
@property (nonatomic, strong) IBOutlet UIButton *aspectRatioButton;

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

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

Felix Paul Kühne's avatar
Felix Paul Kühne committed
85
@property (nonatomic, strong) MLFile *mediaItem;
86
@property (nonatomic, strong) NSURL *url;
87 88
@property (nonatomic, retain) VLCMediaList *mediaList;
@property (nonatomic, readwrite) NSUInteger itemInMediaListToBePlayedFirst;
Felix Paul Kühne's avatar
Felix Paul Kühne committed
89

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

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

98
- (IBAction)playPause;
99 100
- (IBAction)backward:(id)sender;
- (IBAction)forward:(id)sender;
101
- (IBAction)toggleRepeatMode:(id)sender;
102 103 104
- (IBAction)switchAudioTrack:(id)sender;
- (IBAction)switchSubtitleTrack:(id)sender;

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

108 109 110
- (IBAction)playbackSpeedSliderAction:(id)sender;
- (IBAction)videoDimensionAction:(id)sender;

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