IMAAVPlayerContentPlayhead Class Reference

IMAAVPlayerContentPlayhead Class Reference

Overview

An implementation of IMAContentPlayhead for AVPlayer.

Use this class to provide content tracking if your content player of choice is an AVPlayer or its subclass.

Inheritance diagram for IMAAVPlayerContentPlayhead:
<IMAContentPlayhead>

Instance Methods

(instancetype) - initWithAVPlayer:
 Initializes a IMAAVPlayerContentPlayhead that tracks a player. More...
 
(instancetype) - NS_UNAVAILABLE
 :nodoc: More...
 

Properties

AVPlayer * player
 The player to track. More...
 
NSTimeInterval currentTime
 Reflects the current playback time in seconds for the content. More...
 

Method Documentation

- (instancetype) initWithAVPlayer: (AVPlayer *)  player

Initializes a IMAAVPlayerContentPlayhead that tracks a player.

It will attach a periodic time observer to the player immediately.

Parameters
playerthe AVPlayer to track.
Returns
the IMAAVPlayerContentPlayhead instance
- (instancetype) NS_UNAVAILABLE

:nodoc:

Property Documentation

- (AVPlayer*) player
readnonatomicstrong

The player to track.

- (NSTimeInterval) currentTime
readnonatomicassigninherited

Reflects the current playback time in seconds for the content.

The property is key value observable.

Send feedback about...

IMA Client-Side SDK for tvOS
Need help? Visit our support page.