BBASMAdVideoHandlerDelegate.h 1.08 KB
//
//  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