VLCMovieViewController.h 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /*****************************************************************************
  2. * VLCMovieViewController.h
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2013-2014 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. @class OBSlider;
  16. @class VLCStatusLabel;
  17. @class VLCHorizontalSwipeGestureRecognizer;
  18. @class VLCVerticalSwipeGestureRecognizer;
  19. @interface VLCMovieViewController : UIViewController <VLCMediaPlayerDelegate, UIActionSheetDelegate>
  20. @property (nonatomic, strong) IBOutlet UIView *movieView;
  21. @property (nonatomic, strong) IBOutlet UIBarButtonItem *backButton;
  22. @property (nonatomic, strong) IBOutlet OBSlider *positionSlider;
  23. @property (nonatomic, strong) IBOutlet UIButton *timeDisplay;
  24. @property (nonatomic, strong) IBOutlet UIButton *playPauseButton;
  25. @property (nonatomic, strong) IBOutlet UIButton *playPauseButtonLandscape;
  26. @property (nonatomic, strong) IBOutlet UIButton *bwdButton;
  27. @property (nonatomic, strong) IBOutlet UIButton *bwdButtonLandscape;
  28. @property (nonatomic, strong) IBOutlet UIButton *fwdButton;
  29. @property (nonatomic, strong) IBOutlet UIButton *fwdButtonLandscape;
  30. @property (nonatomic, strong) IBOutlet UIView *subtitleContainer;
  31. @property (nonatomic, strong) IBOutlet UIView *subtitleContainerLandscape;
  32. @property (nonatomic, strong) IBOutlet UIButton *subtitleSwitcherButton;
  33. @property (nonatomic, strong) IBOutlet UIButton *subtitleSwitcherButtonLandscape;
  34. @property (nonatomic, strong) IBOutlet UIButton *audioSwitcherButton;
  35. @property (nonatomic, strong) IBOutlet UIButton *audioSwitcherButtonLandscape;
  36. @property (nonatomic, strong) IBOutlet UIButton *repeatButton;
  37. @property (nonatomic, strong) IBOutlet UIButton *repeatButtonLandscape;
  38. @property (nonatomic, strong) IBOutlet UINavigationBar *toolbar;
  39. @property (nonatomic, strong) IBOutlet VLCFrostedGlasView *controllerPanel;
  40. @property (nonatomic, strong) IBOutlet VLCFrostedGlasView *controllerPanelLandscape;
  41. @property (nonatomic, strong) IBOutlet VLCStatusLabel *statusLabel;
  42. @property (nonatomic, strong) IBOutlet MPVolumeView *volumeView;
  43. @property (nonatomic, strong) IBOutlet MPVolumeView *volumeViewLandscape;
  44. @property (nonatomic, strong) IBOutlet UIView *playingExternallyView;
  45. @property (nonatomic, strong) IBOutlet UILabel *playingExternallyTitle;
  46. @property (nonatomic, strong) IBOutlet UILabel *playingExternallyDescription;
  47. @property (nonatomic, strong) IBOutlet VLCFrostedGlasView *videoFilterView;
  48. @property (nonatomic, strong) IBOutlet UIButton *videoFilterButton;
  49. @property (nonatomic, strong) IBOutlet UIButton *videoFilterButtonLandscape;
  50. @property (nonatomic, strong) IBOutlet UILabel *hueLabel;
  51. @property (nonatomic, strong) IBOutlet UISlider *hueSlider;
  52. @property (nonatomic, strong) IBOutlet UILabel *contrastLabel;
  53. @property (nonatomic, strong) IBOutlet UISlider *contrastSlider;
  54. @property (nonatomic, strong) IBOutlet UILabel *brightnessLabel;
  55. @property (nonatomic, strong) IBOutlet UISlider *brightnessSlider;
  56. @property (nonatomic, strong) IBOutlet UILabel *saturationLabel;
  57. @property (nonatomic, strong) IBOutlet UISlider *saturationSlider;
  58. @property (nonatomic, strong) IBOutlet UILabel *gammaLabel;
  59. @property (nonatomic, strong) IBOutlet UISlider *gammaSlider;
  60. @property (nonatomic, strong) IBOutlet UIButton *resetVideoFilterButton;
  61. @property (nonatomic, strong) IBOutlet VLCFrostedGlasView *playbackSpeedView;
  62. @property (nonatomic, strong) IBOutlet UIButton *playbackSpeedButton;
  63. @property (nonatomic, strong) IBOutlet UIButton *playbackSpeedButtonLandscape;
  64. @property (nonatomic, strong) IBOutlet UISlider *playbackSpeedSlider;
  65. @property (nonatomic, strong) IBOutlet UILabel *playbackSpeedLabel;
  66. @property (nonatomic, strong) IBOutlet UILabel *playbackSpeedIndicator;
  67. @property (nonatomic, strong) IBOutlet UIButton *aspectRatioButton;
  68. @property (nonatomic, strong) IBOutlet VLCFrostedGlasView *scrubIndicatorView;
  69. @property (nonatomic, strong) IBOutlet UILabel *currentScrubSpeedLabel;
  70. @property (nonatomic, strong) IBOutlet UILabel *scrubHelpLabel;
  71. @property (nonatomic, strong) IBOutlet UILabel *artistNameLabel;
  72. @property (nonatomic, strong) IBOutlet UILabel *albumNameLabel;
  73. @property (nonatomic, strong) IBOutlet UILabel *trackNameLabel;
  74. @property (nonatomic, strong) IBOutlet UIImageView *artworkImageView;
  75. @property (nonatomic, strong) MLFile *fileFromMediaLibrary;
  76. @property (nonatomic, strong) NSURL *url;
  77. @property (nonatomic, strong) NSString *pathToExternalSubtitlesFile;
  78. @property (nonatomic, retain) VLCMediaList *mediaList;
  79. @property (nonatomic, readwrite) int itemInMediaListToBePlayedFirst;
  80. - (IBAction)closePlayback:(id)sender;
  81. - (IBAction)positionSliderAction:(id)sender;
  82. - (IBAction)positionSliderTouchDown:(id)sender;
  83. - (IBAction)positionSliderTouchUp:(id)sender;
  84. - (IBAction)positionSliderDrag:(id)sender;
  85. - (IBAction)toggleTimeDisplay:(id)sender;
  86. - (IBAction)playPause;
  87. - (IBAction)backward:(id)sender;
  88. - (IBAction)forward:(id)sender;
  89. - (IBAction)toggleRepeatMode:(id)sender;
  90. - (IBAction)switchAudioTrack:(id)sender;
  91. - (IBAction)switchSubtitleTrack:(id)sender;
  92. - (IBAction)videoFilterToggle:(id)sender;
  93. - (IBAction)videoFilterSliderAction:(id)sender;
  94. - (IBAction)playbackSpeedSliderAction:(id)sender;
  95. - (IBAction)videoDimensionAction:(id)sender;
  96. @end