PLVVodAdPlayerViewController Class Reference

Inherits from UIViewController
Declared in PLVVodAdPlayerViewController.h

Overview

广告播放器

  ads

需要播放的广告

@property (nonatomic, strong) NSArray<PLVVodAd*> *ads

Declared In

PLVVodAdPlayerViewController.h

  currentAd

当前播放广告

@property (nonatomic, strong) PLVVodAd *currentAd

Declared In

PLVVodAdPlayerViewController.h

  state

当前播放广告的状态

@property (nonatomic, assign) PLVVodAssetState state

Declared In

PLVVodAdPlayerViewController.h

  playButton

播放按钮,仅在暂停广告会出现

@property (nonatomic, strong, readonly) UIButton *playButton

Declared In

PLVVodAdPlayerViewController.h

  timeLabel

剩余时间文本

@property (nonatomic, strong, readonly) UILabel *timeLabel

Declared In

PLVVodAdPlayerViewController.h

  canSkip

跳过按钮

@property (nonatomic, assign) BOOL canSkip

Declared In

PLVVodAdPlayerViewController.h

  muteButton

静音按钮

@property (nonatomic, strong, readonly) UIButton *muteButton

Declared In

PLVVodAdPlayerViewController.h

  playerErrorHandler

错误回调

@property (nonatomic, copy) void ( ^ ) ( PLVVodAdPlayerViewController *adPlayer , NSError *error ) playerErrorHandler

Declared In

PLVVodAdPlayerViewController.h

  adDidTapBlock

点击回调

@property (nonatomic, copy) void ( ^ ) ( PLVVodAd *ad ) adDidTapBlock

Declared In

PLVVodAdPlayerViewController.h

  topInset

上边距

@property (nonatomic, assign) CGFloat topInset

Declared In

PLVVodAdPlayerViewController.h

– showAdWithLocation:completion:

显示广告

- (void)showAdWithLocation:(PLVVodAdLocation)location completion:(PLVVodAdCompletionBlock)completion

Declared In

PLVVodAdPlayerViewController.h

– hideAd

隐藏广告

- (void)hideAd

Declared In

PLVVodAdPlayerViewController.h

+ timeStringWithSeconds:

时间标签

+ (NSAttributedString *)timeStringWithSeconds:(NSInteger)remainSeconds

Declared In

PLVVodAdPlayerViewController.h