CSJPlayableLandingViewController.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // CSJPlayableLandingViewController.h
  3. // Pods
  4. //
  5. // Created by wangyanlin on 2021/1/4.
  6. //
  7. #import <UIKit/UIKit.h>
  8. #import "CSJAdSlot.h"
  9. #import "CSJAdSDKDefines+Private.h"
  10. #import "CSJMaterialMeta+Private.h"
  11. #import "CSJRewardedVideoWebViewController.h"
  12. NS_ASSUME_NONNULL_BEGIN
  13. @protocol CSJPlayableLandingViewControllerDelegate <NSObject>
  14. - (NSInteger)currentVideoProgress;
  15. - (void)sendPlayableReward;
  16. - (void)setCurrentVideoProgress:(NSInteger)progress;
  17. @end
  18. @interface CSJPlayableLandingViewController : UIViewController
  19. @property (nonatomic, strong) CSJAdSlot *adSlot;
  20. /// closeType: 0. 关闭广告 1. 跳 endcard
  21. @property (nonatomic, copy) void(^CloseBlock)(NSInteger closeType);
  22. @property (nonatomic, copy) void(^DisappearedBlock)(void);
  23. @property (nonatomic, copy) void(^ShowConfirmBlock)(void);
  24. @property (nonatomic, strong) CSJRewardedVideoWebViewController *playableWebVC;
  25. @property (nonatomic, assign) BOOL hadSwitchToWebviewVC;//激励/全屏前置 playable 需求, 会存在 loading VC 超时时间内 点击 视频跳过 进入 playable. 此时需要提前设置状态 https://bits.bytedance.net/meego/ad/issue/detail/W-1501418?parentUrl=%2Fad%2FissueView%2FyMBE_ytw4s#detail
  26. @property (nonatomic, weak) id<CSJPlayableLandingViewControllerDelegate> delegate;
  27. /// 当前播放进度,用于透传进度给pl
  28. @property (nonatomic, strong) NSNumber *currentPlayTime;
  29. /// 是否已经完成转换(进落地页或者打开App store)
  30. @property (nonatomic, assign) BOOL isConverted;
  31. @property (nonatomic, assign) BOOL autoPlay;
  32. - (instancetype)initViewControllerWithAd:(CSJMaterialMeta *)materialMeta slot:(CSJAdSlot *)slot pageType:(BUVideoWebPageType)pageType;
  33. - (void)updateSlientBtnState:(BOOL)isMute;
  34. @end
  35. NS_ASSUME_NONNULL_END