VideoPlayer.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* Copyright (C) 2012 IGN Entertainment, Inc. */
  2. #import <Foundation/Foundation.h>
  3. extern NSString * const kVideoPlayerVideoChangedNotification;
  4. extern NSString * const kVideoPlayerWillHideControlsNotification;
  5. extern NSString * const kVideoPlayerWillShowControlsNotification;
  6. extern NSString * const kTrackEventVideoStart;
  7. extern NSString * const kTrackEventVideoLiveStart;
  8. extern NSString * const kTrackEventVideoComplete;
  9. @protocol VideoPlayerDelegate <NSObject>
  10. @optional
  11. @property (nonatomic) BOOL fullScreenToggled;
  12. - (void)trackEvent:(NSString *)event videoID:(NSString *)videoID title:(NSString *)title;
  13. @end
  14. @protocol VideoPlayer <NSObject>
  15. @property (readonly, strong) NSDictionary *currentVideoInfo;
  16. @property (nonatomic, weak) id <VideoPlayerDelegate> delegate;
  17. @property (readonly) BOOL fullScreenModeToggled;
  18. @property (nonatomic) BOOL showStaticEndTime;
  19. @property (nonatomic) BOOL allowPortraitFullscreen;
  20. @property (nonatomic, readonly) BOOL isPlaying;
  21. - (void)playVideoWithTitle:(NSString *)title URL:(NSURL *)url videoID:(NSString *)videoID shareURL:(NSURL *)shareURL isStreaming:(BOOL)streaming playInFullScreen:(BOOL)playInFullScreen;
  22. - (void)showCannotFetchStreamError;
  23. - (void)launchFullScreen;
  24. - (void)minimizeVideo;
  25. - (void)playPauseHandler;
  26. @end