IMAAVPlayerVideoDisplay Class Reference

An implementation of the IMAVideoDisplay protocol. More...

#import <IMAAVPlayerVideoDisplay.h>

+ Inheritance diagram for IMAAVPlayerVideoDisplay:

Instance Methods

(instancetype) - initWithAVPlayer:
 Creates an IMAAVPlayerVideoDisplay that will play ads in the passed in content player. More...
 
(instancetype) - NS_UNAVAILABLE
 :nodoc: More...
 

Properties

AVPlayer * player
 The content player used for both content and ad video playback. More...
 
AVPlayerItem * playerItem
 The player item that will be played by the player. More...
 
id< IMAAVPlayerVideoDisplayDelegateavPlayerVideoDisplayDelegate
 Allows the publisher to receive IMAAVPlayerVideoDisplay specific events. More...
 
NSArray * subtitles
 The subtitles for the current stream. More...
 

Detailed Description

An implementation of the IMAVideoDisplay protocol.

This object is intended to be initialized with the content player, and will reuse the player for playing ads.

Method Documentation

- (instancetype) initWithAVPlayer: (AVPlayer *)  player

Creates an IMAAVPlayerVideoDisplay that will play ads in the passed in content player.

Parameters
playerthe AVPlayer instance used for playing content
Returns
an IMAAVPlayerVideoDisplay instance
- (instancetype) NS_UNAVAILABLE

:nodoc:

Property Documentation

- (id<IMAAVPlayerVideoDisplayDelegate>) avPlayerVideoDisplayDelegate
readwritenonatomicweak

Allows the publisher to receive IMAAVPlayerVideoDisplay specific events.

- (AVPlayer*) player
readnonatomicstrong

The content player used for both content and ad video playback.

- (AVPlayerItem*) playerItem
readnonatomicstrong

The player item that will be played by the player.

Access to the player item is provided so the item can be seeked before it is ready to play.

- (NSArray*) subtitles
readnonatomicstrong

The subtitles for the current stream.

Will be nil until the stream starts playing.


The documentation for this class was generated from the following file: