IMAAVPlayerContentPlayhead Class Reference

An implementation of IMAContentPlayhead for AVPlayer. More...

#import <IMAAVPlayerContentPlayhead.h>

+ Inheritance diagram for IMAAVPlayerContentPlayhead:

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...
 
- Properties inherited from <IMAContentPlayhead>
NSTimeInterval currentTime
 Reflects the current playback time in seconds for the content. More...
 

Detailed Description

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.

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.


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