2
0

VideoPlayerKit.h 1.6 KB

123456789101112131415161718192021222324252627282930313233
  1. /* Copyright (C) 2012 IGN Entertainment, Inc. */
  2. #import <UIKit/UIKit.h>
  3. #import "VideoPlayer.h"
  4. #import "VideoPlayerView.h"
  5. @interface VideoPlayerKit : UIViewController <VideoPlayer>
  6. @property (nonatomic, weak) id <VideoPlayerDelegate> delegate;
  7. @property (readonly, strong) NSDictionary *currentVideoInfo;
  8. @property (readonly, strong) VideoPlayerView *videoPlayerView;
  9. @property (readonly) BOOL fullScreenModeToggled;
  10. @property (nonatomic) BOOL showStaticEndTime;
  11. @property (nonatomic, readonly) BOOL isPlaying;
  12. @property (nonatomic) BOOL allowPortraitFullscreen;
  13. @property (nonatomic) UIEdgeInsets controlsEdgeInsets;
  14. @property (readwrite, strong) AVPlayer *videoPlayer;
  15. - (void)playVideoWithTitle:(NSString *)title URL:(NSURL *)url videoID:(NSString *)videoID shareURL:(NSURL *)shareURL isStreaming:(BOOL)streaming playInFullScreen:(BOOL)playInFullScreen;
  16. - (void)syncFullScreenButton:(UIInterfaceOrientation)toInterfaceOrientation;
  17. - (void)showCannotFetchStreamError;
  18. - (void)launchFullScreen;
  19. - (void)minimizeVideo;
  20. - (void)playPauseHandler;
  21. + (VideoPlayerKit *)videoPlayerWithContainingViewController:(UIViewController *)containingViewController
  22. optionalTopView:(UIView *)topView
  23. hideTopViewWithControls:(BOOL)hideTopViewWithControls
  24. __attribute__((deprecated("Replaced by videoPlayerWithContainingView:(UIView *)")));
  25. + (VideoPlayerKit *)videoPlayerWithContainingView:(UIView *)containingView
  26. optionalTopView:(UIView *)topView
  27. hideTopViewWithControls:(BOOL)hideTopViewWithControls;
  28. @end