VLCMovieViewController.h 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /*****************************************************************************
  2. * VLCMovieViewController.h
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2013-2017 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Authors: Felix Paul Kühne <fkuehne # videolan.org>
  9. * Gleb Pinigin <gpinigin # gmail.com>
  10. *
  11. * Refer to the COPYING file of the official project for license.
  12. *****************************************************************************/
  13. #import <MediaPlayer/MediaPlayer.h>
  14. #import "VLCFrostedGlasView.h"
  15. #import "VLCPlaybackController.h"
  16. @class OBSlider;
  17. @class VLCService;
  18. @class VLCStatusLabel;
  19. @class VLCVerticalSwipeGestureRecognizer;
  20. @class VLCTimeNavigationTitleView;
  21. @class VLCMovieViewControlPanelView;
  22. @class VLCMovieViewController;
  23. typedef NS_ENUM(NSInteger, VLCMovieJumpState) {
  24. VLCMovieJumpStateDefault,
  25. VLCMovieJumpStateForward,
  26. VLCMovieJumpStateBackward
  27. };
  28. @protocol VLCMovieViewControllerDelegate
  29. - (void)movieViewControllerDidSelectMinimize:(VLCMovieViewController *)movieViewController;
  30. - (BOOL)movieViewControllerShouldBeDisplayed:(VLCMovieViewController *)movieViewController;
  31. @end
  32. @interface VLCMovieViewController : UIViewController <UIActionSheetDelegate, VLCPlaybackControllerDelegate>
  33. @property (nonatomic, strong) IBOutlet UIView *movieView;
  34. @property (nonatomic, strong) IBOutlet VLCTimeNavigationTitleView *timeNavigationTitleView;
  35. @property (nonatomic, strong) IBOutlet VLCStatusLabel *statusLabel;
  36. @property (nonatomic, strong) IBOutlet VLCFrostedGlasView *videoFilterView;
  37. @property (nonatomic, strong) IBOutlet UILabel *hueLabel;
  38. @property (nonatomic, strong) IBOutlet UISlider *hueSlider;
  39. @property (nonatomic, strong) IBOutlet UILabel *contrastLabel;
  40. @property (nonatomic, strong) IBOutlet UISlider *contrastSlider;
  41. @property (nonatomic, strong) IBOutlet UILabel *brightnessLabel;
  42. @property (nonatomic, strong) IBOutlet UISlider *brightnessSlider;
  43. @property (nonatomic, strong) IBOutlet UILabel *saturationLabel;
  44. @property (nonatomic, strong) IBOutlet UISlider *saturationSlider;
  45. @property (nonatomic, strong) IBOutlet UILabel *gammaLabel;
  46. @property (nonatomic, strong) IBOutlet UISlider *gammaSlider;
  47. @property (nonatomic, strong) IBOutlet UIButton *resetVideoFilterButton;
  48. @property (nonatomic, strong) IBOutlet VLCFrostedGlasView *scrubIndicatorView;
  49. @property (nonatomic, strong) IBOutlet UILabel *currentScrubSpeedLabel;
  50. @property (nonatomic, strong) IBOutlet UILabel *scrubHelpLabel;
  51. @property (nonatomic, strong) IBOutlet UILabel *artistNameLabel;
  52. @property (nonatomic, strong) IBOutlet UILabel *albumNameLabel;
  53. @property (nonatomic, strong) IBOutlet UILabel *trackNameLabel;
  54. @property (nonatomic, strong) IBOutlet UIImageView *artworkImageView;
  55. @property (nonatomic, strong) IBOutlet NSLayoutConstraint *widthConstraint;
  56. @property (nonatomic, strong) IBOutlet UIActivityIndicatorView *activityIndicator;
  57. @property (nonatomic, weak) id<VLCMovieViewControllerDelegate> delegate;
  58. - (instancetype)initWithServices:(VLCService *)services;
  59. - (IBAction)closePlayback:(id)sender;
  60. - (IBAction)minimizePlayback:(id)sender;
  61. - (IBAction)positionSliderAction:(id)sender;
  62. - (IBAction)positionSliderTouchDown:(id)sender;
  63. - (IBAction)positionSliderTouchUp:(id)sender;
  64. - (IBAction)positionSliderDrag:(id)sender;
  65. - (IBAction)toggleTimeDisplay:(id)sender;
  66. - (IBAction)videoFilterSliderAction:(id)sender;
  67. - (IBAction)videoDimensionAction:(id)sender;
  68. - (void)toggleRepeatMode;
  69. - (void)toggleShuffleMode;
  70. - (void)toggleEqualizer;
  71. - (void)toggleUILock;
  72. - (void)toggleChapterAndTitleSelector;
  73. - (void)hideMenu;
  74. @end