28 #import <Foundation/Foundation.h> 30 #import "IMAAdError.h" 31 #import "IMAAdEvent.h" 32 #import "IMAAdPlaybackInfo.h" 33 #import "IMAAdsRenderingSettings.h" 34 #import "IMAContentPlayhead.h" 39 #pragma mark IMAStreamManagerDelegate 74 adDidProgressToTime:(NSTimeInterval)time
75 adDuration:(NSTimeInterval)adDuration
76 adPosition:(NSInteger)adPosition
77 totalAds:(NSInteger)totalAds
78 adBreakDuration:(NSTimeInterval)adBreakDuration;
82 #pragma mark - IMAStreamManager 92 @property(nonatomic, weak) NSObject<IMAStreamManagerDelegate> *
delegate;
98 @property(nonatomic, copy, readonly) NSString *
streamId;
116 - (NSTimeInterval)streamTimeForContentTime:(NSTimeInterval)contentTime;
126 - (NSTimeInterval)contentTimeForStreamTime:(NSTimeInterval)streamTime;
137 - (
IMACuepoint *)previousCuepointForStreamTime:(NSTimeInterval)streamTime;
NSObject< IMAStreamManagerDelegate > * delegate
The IMAStreamManagerDelegate to notify with events during stream playback.
Definition: IMAStreamManager.h:92
Set of properties that influence how ads are rendered.
Definition: IMAAdsRenderingSettings.h:69
Simple data class used to transport ad playback information.
Definition: IMAAdEvent.h:113
The IMAStreamManager class is responsible for playing streams.
Definition: IMAStreamManager.h:87
Data object representation of a cuepoint for a single ad break.
Definition: IMACuepoint.h:13
instancetype NS_UNAVAILABLE()
:nodoc:
A callback protocol for IMAStreamManager.
Definition: IMAStreamManager.h:44
Surfaces an error that occurred during ad loading or playing.
Definition: IMAAdError.h:151
void destroy()
Cleans the stream manager's internal state for proper deallocation.
NSString * streamId
Identifier used during dynamic ad insertion to uniquely identify a stream.
Definition: IMAStreamManager.h:98