2
0

VideoPlayerView.h 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. /* Copyright (C) 2012 IGN Entertainment, Inc. */
  2. #import <UIKit/UIKit.h>
  3. #import <AVFoundation/AVFoundation.h>
  4. #import <CoreMedia/CoreMedia.h>
  5. #import <MediaPlayer/MediaPlayer.h>
  6. #import "AirplayActiveView.h"
  7. @interface VideoPlayerView : UIView {
  8. BOOL _fullscreen;
  9. }
  10. @property (readwrite) CGFloat padding;
  11. @property (readonly, strong) UILabel *titleLabel;
  12. @property (readonly, strong) AirplayActiveView *airplayIsActiveView;
  13. @property (readonly, strong) UIView *playerControlBar;
  14. @property (readonly, strong) UIButton *playPauseButton;
  15. @property (readonly, strong) UIButton *fullScreenButton;
  16. @property (readonly, strong) UISlider *videoScrubber;
  17. @property (readonly, strong) UILabel *currentPositionLabel;
  18. @property (readonly, strong) UILabel *timeLeftLabel;
  19. @property (readonly, strong) UIProgressView *progressView;
  20. @property (readonly, strong) UIButton *shareButton;
  21. @property (readwrite) UIEdgeInsets controlsEdgeInsets;
  22. @property (nonatomic, readwrite, getter=isFullscreen) BOOL fullscreen;
  23. @property (readonly, strong) UIActivityIndicatorView *activityIndicator;
  24. - (void)setTitle:(NSString *)title;
  25. - (CGFloat)heightForWidth:(CGFloat)width;
  26. - (void)setPlayer:(AVPlayer *)player;
  27. @end