VLCMovieViewController.h 3.36 KB
Newer Older
Felix Paul Kühne's avatar
Felix Paul Kühne committed
1 2 3 4 5 6 7 8 9
//
//  VLCDetailViewController.h
//  AspenProject
//
//  Created by Felix Paul Kühne on 27.02.13.
//  Copyright (c) 2013 VideoLAN. All rights reserved.
//

#import <UIKit/UIKit.h>
10
#import "VLCStatusLabel.h"
Felix Paul Kühne's avatar
Felix Paul Kühne committed
11

12
@interface VLCMovieViewController : UIViewController <VLCMediaPlayerDelegate, UIActionSheetDelegate>
13 14
{
    VLCMediaPlayer *_mediaPlayer;
15

16
    BOOL _controlsHidden;
17
    BOOL _videoFiltersHidden;
18
    BOOL _playbackSpeedViewHidden;
19

20 21
    UIActionSheet *_subtitleActionSheet;
    UIActionSheet *_audiotrackActionSheet;
22

23
    float _currentPlaybackRate;
24 25
    NSArray *_aspectRatios;
    NSUInteger _currentAspectRatioMask;
26

27
    NSTimer *_idleTimer;
28
}
Felix Paul Kühne's avatar
Felix Paul Kühne committed
29

Felix Paul Kühne's avatar
Felix Paul Kühne committed
30 31 32
@property (nonatomic, strong) IBOutlet UIView *movieView;
@property (nonatomic, strong) IBOutlet UIBarButtonItem *backButton;
@property (nonatomic, strong) IBOutlet UISlider *positionSlider;
33
@property (nonatomic, strong) IBOutlet UILabel *timeDisplay;
Felix Paul Kühne's avatar
Felix Paul Kühne committed
34 35 36 37 38 39 40
@property (nonatomic, strong) IBOutlet UIButton *playPauseButton;
@property (nonatomic, strong) IBOutlet UIButton *bwdButton;
@property (nonatomic, strong) IBOutlet UIButton *fwdButton;
@property (nonatomic, strong) IBOutlet UIButton *subtitleSwitcherButton;
@property (nonatomic, strong) IBOutlet UIButton *audioSwitcherButton;
@property (nonatomic, strong) IBOutlet UIToolbar *toolbar;
@property (nonatomic, strong) IBOutlet UIView *controllerPanel;
41
@property (nonatomic, strong) IBOutlet VLCStatusLabel *statusLabel;
Felix Paul Kühne's avatar
Felix Paul Kühne committed
42 43 44 45 46

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

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

61 62
@property (nonatomic, strong) IBOutlet UIView *playbackSpeedView;
@property (nonatomic, strong) IBOutlet UIButton *playbackSpeedButton;
63 64 65 66 67
@property (nonatomic, strong) IBOutlet UISlider *playbackSpeedSlider;
@property (nonatomic, strong) IBOutlet UILabel *playbackSpeedLabel;
@property (nonatomic, strong) IBOutlet UILabel *playbackSpeedIndicator;
@property (nonatomic, strong) IBOutlet UIButton *aspectRatioButton;

Felix Paul Kühne's avatar
Felix Paul Kühne committed
68
@property (nonatomic, strong) MLFile *mediaItem;
69
@property (nonatomic, strong) NSURL *url;
Felix Paul Kühne's avatar
Felix Paul Kühne committed
70

71 72 73
- (IBAction)closePlayback:(id)sender;
- (IBAction)positionSliderAction:(id)sender;

74
- (IBAction)playPause;
75 76 77 78 79
- (IBAction)backward:(id)sender;
- (IBAction)forward:(id)sender;
- (IBAction)switchAudioTrack:(id)sender;
- (IBAction)switchSubtitleTrack:(id)sender;

80 81 82
- (IBAction)videoFilterToggle:(id)sender;
- (IBAction)videoFilterSliderAction:(id)sender;

83 84 85
- (IBAction)playbackSpeedSliderAction:(id)sender;
- (IBAction)videoDimensionAction:(id)sender;

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