mergemilitary/Assets/Plugins/ToukaGames/ToponSDK/baidu/BaiduMobAdSDK.framework/Headers/BaiduMobAdVideoView.h

157 lines
2.7 KiB
C
Raw Normal View History

//
// BaiduMobAdCustomVideoView.h
// BaiduMobAdSDK
//
// Created by Yang,Dingjia on 2018/11/13.
// Copyright © 2018 Baidu Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "BaiduMobAdCommonConfig.h"
#import <AVFoundation/AVFoundation.h>
@class BaiduMobAdVideoView;
@protocol BaiduMobAdVideoViewDelegate <NSObject>
@optional
/**
@param videoView self
*/
- (void)fullscreenVideoAdDidStartPlaying:(BaiduMobAdVideoView *)videoView;
/**
@param videoView self
*/
- (void)fullscreenVideoAdDidPause:(BaiduMobAdVideoView *)videoView;
/**
@param videoView self
*/
- (void)fullscreenVideoAdDidReplay:(BaiduMobAdVideoView *)videoView;
/**
@param videoView self
*/
- (void)fullscreenVideoAdDidComplete:(BaiduMobAdVideoView *)videoView;
/**
@param videoView self
*/
- (void)fullscreenVideoAdDidFailed:(BaiduMobAdVideoView *)videoView;
/**
@param videoView self
*/
- (void)fullscreenVideoAdDidClick:(BaiduMobAdVideoView *)videoView;
@end
@interface BaiduMobAdVideoView : UIView
@property (nonatomic, weak) id <BaiduMobAdVideoViewDelegate> delegate;
/**
* 广type
*/
@property (nonatomic, assign) BaiduMobMaterialType materialType;
/**
@param frame videoView尺寸
@param object BaiduMobAdNativeAdObject
@return BaiduMobAdVideoView
*/
- (instancetype)initWithFrame:(CGRect)frame andObject:(id)object;
/**
AVAudioSessionCategoryplay之前调用AVAudioSessionCategoryAmbient
*/
- (void)setAudioSessionCategory:(AVAudioSessionCategory)category;
/**
*/
- (void)play;
/**
*/
- (void)replay;
/**
*/
- (void)pause;
/**
*/
- (void)stop;
/**
play前调用
*/
- (void)setFrontPostViewWithPic:(BaiduMobAdVideoFrontPictureType)type;
/**
play前调用
@param hidden YES隐藏 NO显示
*/
- (void)hidePauseButton:(BOOL)hidden;
/**
@param mute YES静音 NO非静音
*/
- (void)setVideoMute:(BOOL)mute;
/**
@return isPlaying
*/
- (BOOL)isPlaying;
/**
@return
*/
- (NSTimeInterval)currentTime;
/**
@return
*/
- (NSTimeInterval)duration;
#pragma mark - 计费相关视频事件 重要!
/**
*/
- (void)handleClick;
/**
*/
- (void)trackImpression BaiduMobAdDEPRECATED_MSG("已废弃,无需开发者发送");
@end