admin
2022-09-04 fa05f89529e05078b29606e4beda3de5cfdce485
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//
//  CSJPurePlayableLoadingViewController.h
//  CSJAdSDK
//
//  Created by 李盛 on 2019/8/7.
//  Copyright © 2019 bytedance. All rights reserved.
//
 
#import "CSJRewardedVideoWebViewController.h"
 
NS_ASSUME_NONNULL_BEGIN
 
@class CSJPurePlayableLoadingViewController;
 
@protocol CSJPurePlayableLoadingViewControllerDelegate <NSObject>
 
- (void)clickButtonTapFromPlayableLoading;
 
- (void)purePlayableRemoveLoadingByTimeout;
 
- (void)purePlayableVolumeChange:(CSJPurePlayableLoadingViewController *)vc isMute:(BOOL )isMute;
 
- (BOOL)isPlayableRenderFailed;
@end
 
typedef NS_ENUM(NSInteger,BULoadingTrackingStatus) {
    BULoadingTrackingStatus_LoadingSuccess = 0,
    BULoadingTrackingStatus_H5Remove = 1,
    BULoadingTrackingStatus_H5TimeOut = 2,
    BULoadingTrackingStatus_RenderFailed = 3
};
@interface CSJPurePlayableLoadingViewController : UIViewController
@property (nonatomic, weak) id<CSJPurePlayableLoadingViewControllerDelegate> delegate;
@property (nonatomic, copy) NSString *ritScene;
@property (nonatomic, strong) CSJAdSlot *adSlot;
@property (nonatomic, assign) BOOL isTransform;    //自己是否旋转
@property (nonatomic, assign) BUChildTransformDirection transformDirection;
@property (nonatomic, assign) BOOL isRewardedVideo; // YES: 激励视频 NO:全屏视频
@property (nonatomic, assign) BOOL hideTopButtons;//是否隐藏endCard关闭按钮 (纯playable隐藏 因为用了自己的close)
@property (nonatomic, assign) BOOL isLandscape;//给当前以及子类判断是否横屏情况
@property (nonatomic, assign) BOOL isRenderFailed; // 渲染失败
/// 关闭按钮
 
@property (nonatomic, assign) BUVideoWebPageType pageType;
 
@property (nonatomic, assign) BOOL isInitMute;
 
/// 关闭loading页原因 0 加载完成  1前端jsb回调隐藏  2超时  3渲染失败
@property (nonatomic, assign) BULoadingTrackingStatus trackStatus;
 
- (instancetype)initViewControllerWithAd:(CSJMaterialMeta *)materialMeta;
@end
 
 
 
NS_ASSUME_NONNULL_END