BBASMAdVideoHandlerDelegate.h
1.08 KB
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
//
// BBASMAdVideoHandlerDelegate.h
// SWANAd
//
// Created by xutingting on 2020/7/14.
// Copyright © 2020 Baidu. All rights reserved.
//
#import <Foundation/Foundation.h>
// 小程序广告落地页关闭事件观察
#define BBASMAppAdLpCloseNotification @"BBASMAppAdLpCloseNotification"
@protocol BBASMAdVideoHandlerDelegate <NSObject>
// 当播放到末尾时触发 ended 事件回调
- (void)playerDidEnd:(NSString *)videoId;
// 当开始/继续播放时触发play事件回调
- (void)playerDidPlay:(NSString *)videoId;
// 当播放到末尾时触发 ended 事件回调
- (void)playerDidPause:(NSString *)videoId;
//player更新播放进度
- (void)videoPlayerUpdateTimeProgress:(double)currentTime
duration:(double)duration
videoId:(NSString *)videoId;
// 播放器播放成功回调
- (void)playerDidPlaySuccess:(NSString *)videoId;
/**
* @brief 播放器是否可以根据屏幕方向 切换半屏 全屏
*
* @return YES 自动切换
*/
- (BOOL)playerShouldAutorotate;
- (void)playerDidFailed:(NSString *)videoId;
@end