AI-generated Key Takeaways
-
IMAAdPlaybackInfo
provides information about the current state of ad playback, such as current time, total time, and buffered time. -
It indicates if the ad is currently playing with the
isPlaying
property. -
All properties return 0 for time-related values if no ad is loaded.
-
Access playback details through read-only properties like
currentMediaTime
,totalMediaTime
, andbufferedMediaTime
.
IMAAdPlaybackInfo
@protocol IMAAdPlaybackInfo <NSObject>
Groups various properties of the ad player.
-
The current media time of the ad, or 0 if no ad loaded.
Declaration
Swift
var currentMediaTime: TimeInterval { get }
Objective-C
@property (nonatomic, readonly) NSTimeInterval currentMediaTime;
-
The total media time of the ad, or 0 if no ad loaded.
Declaration
Swift
var totalMediaTime: TimeInterval { get }
Objective-C
@property (nonatomic, readonly) NSTimeInterval totalMediaTime;
-
The buffered media time of the ad, or 0 if no ad loaded.
Declaration
Swift
var bufferedMediaTime: TimeInterval { get }
Objective-C
@property (nonatomic, readonly) NSTimeInterval bufferedMediaTime;
-
Whether or not the ad is currently playing.
Declaration
Swift
var isPlaying: Bool { get }
Objective-C
@property (nonatomic, readonly, getter=isPlaying) BOOL playing;