VLCMovieViewController.h 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. //
  2. // VLCDetailViewController.h
  3. // AspenProject
  4. //
  5. // Created by Felix Paul Kühne on 27.02.13.
  6. // Copyright (c) 2013 VideoLAN. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "VLCStatusLabel.h"
  10. #import "VLCHorizontalSwipeGestureRecognizer.h"
  11. #import "VLCVerticalSwipeGestureRecognizer.h"
  12. @interface VLCMovieViewController : UIViewController <VLCMediaPlayerDelegate, UIActionSheetDelegate, VLCHorizontalSwipeGestureRecognizer, VLCVerticalSwipeGestureRecognizer>
  13. {
  14. VLCMediaPlayer *_mediaPlayer;
  15. BOOL _controlsHidden;
  16. BOOL _videoFiltersHidden;
  17. BOOL _playbackSpeedViewHidden;
  18. UIActionSheet *_subtitleActionSheet;
  19. UIActionSheet *_audiotrackActionSheet;
  20. float _currentPlaybackRate;
  21. NSArray *_aspectRatios;
  22. NSUInteger _currentAspectRatioMask;
  23. NSTimer *_idleTimer;
  24. }
  25. @property (nonatomic, strong) IBOutlet UIView *movieView;
  26. @property (nonatomic, strong) IBOutlet UIBarButtonItem *backButton;
  27. @property (nonatomic, strong) IBOutlet UISlider *positionSlider;
  28. @property (nonatomic, strong) IBOutlet UILabel *timeDisplay;
  29. @property (nonatomic, strong) IBOutlet UIButton *playPauseButton;
  30. @property (nonatomic, strong) IBOutlet UIButton *bwdButton;
  31. @property (nonatomic, strong) IBOutlet UIButton *fwdButton;
  32. @property (nonatomic, strong) IBOutlet UIButton *subtitleSwitcherButton;
  33. @property (nonatomic, strong) IBOutlet UIButton *audioSwitcherButton;
  34. @property (nonatomic, strong) IBOutlet UIToolbar *toolbar;
  35. @property (nonatomic, strong) IBOutlet UIView *controllerPanel;
  36. @property (nonatomic, strong) IBOutlet VLCStatusLabel *statusLabel;
  37. @property (nonatomic, strong) IBOutlet UIView *playingExternallyView;
  38. @property (nonatomic, strong) IBOutlet UILabel *playingExternallyTitle;
  39. @property (nonatomic, strong) IBOutlet UILabel *playingExternallyDescription;
  40. @property (nonatomic, strong) IBOutlet UIView *videoFilterView;
  41. @property (nonatomic, strong) IBOutlet UIButton *videoFilterButton;
  42. @property (nonatomic, strong) IBOutlet UILabel *hueLabel;
  43. @property (nonatomic, strong) IBOutlet UISlider *hueSlider;
  44. @property (nonatomic, strong) IBOutlet UILabel *contrastLabel;
  45. @property (nonatomic, strong) IBOutlet UISlider *contrastSlider;
  46. @property (nonatomic, strong) IBOutlet UILabel *brightnessLabel;
  47. @property (nonatomic, strong) IBOutlet UISlider *brightnessSlider;
  48. @property (nonatomic, strong) IBOutlet UILabel *saturationLabel;
  49. @property (nonatomic, strong) IBOutlet UISlider *saturationSlider;
  50. @property (nonatomic, strong) IBOutlet UILabel *gammaLabel;
  51. @property (nonatomic, strong) IBOutlet UISlider *gammaSlider;
  52. @property (nonatomic, strong) IBOutlet UIButton *resetVideoFilterButton;
  53. @property (nonatomic, strong) IBOutlet UIView *playbackSpeedView;
  54. @property (nonatomic, strong) IBOutlet UIButton *playbackSpeedButton;
  55. @property (nonatomic, strong) IBOutlet UISlider *playbackSpeedSlider;
  56. @property (nonatomic, strong) IBOutlet UILabel *playbackSpeedLabel;
  57. @property (nonatomic, strong) IBOutlet UILabel *playbackSpeedIndicator;
  58. @property (nonatomic, strong) IBOutlet UIButton *aspectRatioButton;
  59. @property (nonatomic, strong) MLFile *mediaItem;
  60. @property (nonatomic, strong) NSURL *url;
  61. - (IBAction)closePlayback:(id)sender;
  62. - (IBAction)positionSliderAction:(id)sender;
  63. - (IBAction)playPause;
  64. - (IBAction)backward:(id)sender;
  65. - (IBAction)forward:(id)sender;
  66. - (IBAction)switchAudioTrack:(id)sender;
  67. - (IBAction)switchSubtitleTrack:(id)sender;
  68. - (IBAction)videoFilterToggle:(id)sender;
  69. - (IBAction)videoFilterSliderAction:(id)sender;
  70. - (IBAction)playbackSpeedSliderAction:(id)sender;
  71. - (IBAction)videoDimensionAction:(id)sender;
  72. @end