VLCMovieViewController.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. @interface VLCMovieViewController : UIViewController <VLCMediaPlayerDelegate, UIActionSheetDelegate>
  11. {
  12. VLCMediaPlayer *_mediaPlayer;
  13. BOOL _controlsHidden;
  14. BOOL _videoFiltersHidden;
  15. BOOL _playbackSpeedViewHidden;
  16. UIActionSheet *_subtitleActionSheet;
  17. UIActionSheet *_audiotrackActionSheet;
  18. float _currentPlaybackRate;
  19. NSArray *_aspectRatios;
  20. NSUInteger _currentAspectRatioMask;
  21. NSTimer *_idleTimer;
  22. }
  23. @property (nonatomic, strong) IBOutlet UIView *movieView;
  24. @property (nonatomic, strong) IBOutlet UIBarButtonItem *backButton;
  25. @property (nonatomic, strong) IBOutlet UISlider *positionSlider;
  26. @property (nonatomic, strong) IBOutlet UILabel *timeDisplay;
  27. @property (nonatomic, strong) IBOutlet UIButton *playPauseButton;
  28. @property (nonatomic, strong) IBOutlet UIButton *bwdButton;
  29. @property (nonatomic, strong) IBOutlet UIButton *fwdButton;
  30. @property (nonatomic, strong) IBOutlet UIButton *subtitleSwitcherButton;
  31. @property (nonatomic, strong) IBOutlet UIButton *audioSwitcherButton;
  32. @property (nonatomic, strong) IBOutlet UIToolbar *toolbar;
  33. @property (nonatomic, strong) IBOutlet UIView *controllerPanel;
  34. @property (nonatomic, strong) IBOutlet VLCStatusLabel *statusLabel;
  35. @property (nonatomic, strong) IBOutlet UIView *playingExternallyView;
  36. @property (nonatomic, strong) IBOutlet UILabel *playingExternallyTitle;
  37. @property (nonatomic, strong) IBOutlet UILabel *playingExternallyDescription;
  38. @property (nonatomic, strong) IBOutlet UIView *videoFilterView;
  39. @property (nonatomic, strong) IBOutlet UIButton *videoFilterButton;
  40. @property (nonatomic, strong) IBOutlet UILabel *hueLabel;
  41. @property (nonatomic, strong) IBOutlet UISlider *hueSlider;
  42. @property (nonatomic, strong) IBOutlet UILabel *contrastLabel;
  43. @property (nonatomic, strong) IBOutlet UISlider *contrastSlider;
  44. @property (nonatomic, strong) IBOutlet UILabel *brightnessLabel;
  45. @property (nonatomic, strong) IBOutlet UISlider *brightnessSlider;
  46. @property (nonatomic, strong) IBOutlet UILabel *saturationLabel;
  47. @property (nonatomic, strong) IBOutlet UISlider *saturationSlider;
  48. @property (nonatomic, strong) IBOutlet UILabel *gammaLabel;
  49. @property (nonatomic, strong) IBOutlet UISlider *gammaSlider;
  50. @property (nonatomic, strong) IBOutlet UIButton *resetVideoFilterButton;
  51. @property (nonatomic, strong) IBOutlet UIView *playbackSpeedView;
  52. @property (nonatomic, strong) IBOutlet UIButton *playbackSpeedButton;
  53. @property (nonatomic, strong) IBOutlet UISlider *playbackSpeedSlider;
  54. @property (nonatomic, strong) IBOutlet UILabel *playbackSpeedLabel;
  55. @property (nonatomic, strong) IBOutlet UILabel *playbackSpeedIndicator;
  56. @property (nonatomic, strong) IBOutlet UIButton *aspectRatioButton;
  57. @property (nonatomic, strong) MLFile *mediaItem;
  58. @property (nonatomic, strong) NSURL *url;
  59. - (IBAction)closePlayback:(id)sender;
  60. - (IBAction)positionSliderAction:(id)sender;
  61. - (IBAction)playPause;
  62. - (IBAction)backward:(id)sender;
  63. - (IBAction)forward:(id)sender;
  64. - (IBAction)switchAudioTrack:(id)sender;
  65. - (IBAction)switchSubtitleTrack:(id)sender;
  66. - (IBAction)videoFilterToggle:(id)sender;
  67. - (IBAction)videoFilterSliderAction:(id)sender;
  68. - (IBAction)playbackSpeedSliderAction:(id)sender;
  69. - (IBAction)videoDimensionAction:(id)sender;
  70. @end