<IMAStreamManagerDelegate> Protocol Reference

<IMAStreamManagerDelegate> Protocol Reference

Overview

A callback protocol for IMAStreamManager.

Inherits <NSObject>.

Instance Methods

(void) - streamManager:didInitializeStream:
 Called when the stream is initialized. More...
 
(void) - streamManager:didReceiveError:
 Called when there is an error. More...
 
(void) - streamManagerIsReadyForPlayback:
 Called when the stream is ready for playback. More...
 
(void) - streamManager:adPeriodDidStart:
 Called when an ad period starts, even when an ad is played a second time or when seeking into an ad. More...
 
(void) - streamManager:adBreakDidStart:
 Called when an ad break starts. More...
 
(void) - streamManager:adDidStart:
 Called when the first frame of an ad is played. More...
 
(void) - streamManager:adDidCrossFirstQuartile:
 Called when an ad crosses the first quartile mark. More...
 
(void) - streamManager:adDidCrossMidpoint:
 Called when an ad crosses the midpoint mark. More...
 
(void) - streamManager:adDidCrossThirdQuartile:
 Called when an ad crosses the third quartile mark. More...
 
(void) - streamManager:adDidComplete:
 Called when the last frame of an ad is played. More...
 
(void) - streamManager:adBreakDidEnd:
 Called when an ad break ends. More...
 
(void) - streamManager:adPeriodDidEnd:
 Called when an ad period ends. More...
 
(void) - streamManager:ad:didCountdownTo:
 Called when the ad counts down to a new time. More...
 
(void) - streamManager:didUpdateCuepoints:
 Called when the cuepoints for the current stream are updated. More...
 

Method Documentation

- (void) streamManager: (IMAStreamManager *)  streamManager
didInitializeStream: (NSString *)  streamID 

Called when the stream is initialized.

Parameters
streamManagerThe IMAStreamManager that initialized the stream
streamIDThe streamID for this stream
- (void) streamManager: (IMAStreamManager *)  streamManager
didReceiveError: (NSError *)  error 

Called when there is an error.

Parameters
streamManagerThe IMAStreamManager receiving the error
errorThe NSError received by the stream manager
- (void) streamManagerIsReadyForPlayback: (IMAStreamManager *)  streamManager
optional

Called when the stream is ready for playback.

Parameters
streamManagerThe IMAStreamManager that is ready for stream playback
- (void) streamManager: (IMAStreamManager *)  streamManager
adPeriodDidStart: (IMAAdBreakInfo *)  adBreakInfo 
optional

Called when an ad period starts, even when an ad is played a second time or when seeking into an ad.

Indicates that the media being played an ad or slate.

Parameters
streamManagerThe IMAStreamManager starting the ad period
adBreakInfoThe IMAAdBreakInfo of the period that is starting
- (void) streamManager: (IMAStreamManager *)  streamManager
adBreakDidStart: (IMAAdBreakInfo *)  adBreakInfo 
optional

Called when an ad break starts.

Parameters
streamManagerThe IMAStreamManager starting the ad break
adBreakInfoThe IMAAdBreakInfo of the break that is starting
- (void) streamManager: (IMAStreamManager *)  streamManager
adDidStart: (IMAAd *)  ad 
optional

Called when the first frame of an ad is played.

Parameters
streamManagerThe IMAStreamManager playing the ad
adThe IMAAd that was started
- (void) streamManager: (IMAStreamManager *)  streamManager
adDidCrossFirstQuartile: (IMAAd *)  ad 
optional

Called when an ad crosses the first quartile mark.

Parameters
streamManagerThe IMAStreamManager playing the ad
adThe IMAAd that crossed the first quartile mark
- (void) streamManager: (IMAStreamManager *)  streamManager
adDidCrossMidpoint: (IMAAd *)  ad 
optional

Called when an ad crosses the midpoint mark.

Parameters
streamManagerThe IMAStreamManager playing the ad
adThe IMAAd that crossed the midpoint mark
- (void) streamManager: (IMAStreamManager *)  streamManager
adDidCrossThirdQuartile: (IMAAd *)  ad 
optional

Called when an ad crosses the third quartile mark.

Parameters
streamManagerThe IMAStreamManager playing the ad
adThe IMAAd that crossed the third quartile mark
- (void) streamManager: (IMAStreamManager *)  streamManager
adDidComplete: (IMAAd *)  ad 
optional

Called when the last frame of an ad is played.

Parameters
streamManagerThe IMAStreamManager playing the ad
adThe IMAAd that was completed
- (void) streamManager: (IMAStreamManager *)  streamManager
adBreakDidEnd: (IMAAdBreakInfo *)  adBreakInfo 
optional

Called when an ad break ends.

Parameters
streamManagerThe IMAStreamManager ending the ad break
adBreakInfoThe IMAAdBreakInfo of the break that is ending
- (void) streamManager: (IMAStreamManager *)  streamManager
adPeriodDidEnd: (IMAAdBreakInfo *)  adBreakInfo 
optional

Called when an ad period ends.

Indicates that the media being played is no longer an ad or slate.

Parameters
streamManagerThe IMAStreamManager ending the ad period
adBreakInfoThe IMAAdBreakInfo of the period that is ending
- (void) streamManager: (IMAStreamManager *)  streamManager
ad: (IMAAd *)  ad
didCountdownTo: (NSTimeInterval)  remainingTime 
optional

Called when the ad counts down to a new time.

Parameters
streamManagerThe IMAStreamManager playing the ad
adThe IMAAd that is being played
remainingTimeThe time remaining for the current ad
- (void) streamManager: (IMAStreamManager *)  streamManager
didUpdateCuepoints: (NSArray< IMACuepoint * > *)  cuepoints 
optional

Called when the cuepoints for the current stream are updated.

Parameters
streamManagerThe IMAStreamManager playing the ad
cuepointsThe array of cuepoints. Each cuepoint will be a dictionary with two keys, "start" and "end", which indicate the start and the end of the ad break respectively

Send feedback about...

IMA DAI SDK for tvOS
Need help? Visit our support page.