IMAStreamManager Class Reference

IMAStreamManager Class Reference

Overview

Stream manager for requesting and handling stream playback.

All methods and properties of the stream manager should be called or accessed from the main thread.

Inherits <NSObject>.

Instance Methods

(instancetype) - initWithVideoDisplay:
 Constructs a stream manager with the given video display. More...
 
(instancetype) - initWithVideoDisplay:settings:
 Constructs a stream manager with the given video display and settings. More...
 
(void) - requestStream:
 Requests a stream for playback and plays it in the video display. More...
 
(NSTimeInterval) - streamTimeForContentTime:
 Returns the stream time with ads for a given content time. More...
 
(NSTimeInterval) - contentTimeForStreamTime:
 Returns the content time without ads for a given stream time. More...
 
(IMACuepoint *) - previousCuepointForStreamTime:
 Returns the previous cuepoint for the given stream time. More...
 

Properties

id< IMAStreamManagerDelegatedelegate
 The stream manager delegate. More...
 
id< IMAVideoDisplayvideoDisplay
 The video display used for stream playback. More...
 
IMASettingssettings
 Stream manager settings. More...
 

Method Documentation

- (instancetype) initWithVideoDisplay: (id< IMAVideoDisplay >)  videoDisplay

Constructs a stream manager with the given video display.

Parameters
videoDisplayThe video display used for stream playback
Returns
An IMAStreamManager instance
- (instancetype) initWithVideoDisplay: (id< IMAVideoDisplay >)  videoDisplay
settings: (IMASettings *)  settings 

Constructs a stream manager with the given video display and settings.

Parameters
videoDisplayThe video display used for stream playback
settingsThe settings used to configure stream playback
Returns
An IMAStreamManager instance
- (void) requestStream: (IMAStreamRequest *)  streamRequest

Requests a stream for playback and plays it in the video display.

Parameters
streamRequestThe IMAStreamRequest containing information about the stream to be played
- (NSTimeInterval) streamTimeForContentTime: (NSTimeInterval)  contentTime

Returns the stream time with ads for a given content time.

Returns the given content time for live streams.

Parameters
contentTimeThe content time without any ads (in seconds)
Returns
The stream time that corresponds with the given content time once ads are inserted
- (NSTimeInterval) contentTimeForStreamTime: (NSTimeInterval)  streamTime

Returns the content time without ads for a given stream time.

Returns the given stream time for live streams.

Parameters
streamTimeThe stream time with inserted ads (in seconds)
Returns
The content time that corresponds with the given stream time once ads are removed
- (IMACuepoint *) previousCuepointForStreamTime: (NSTimeInterval)  streamTime

Returns the previous cuepoint for the given stream time.

Retuns nil if no such cuepoint exists.

Parameters
streamTimeThe stream time that the was seeked to.
Returns
The previous IMACuepoint for the given stream time.

Property Documentation

- (id<IMAStreamManagerDelegate>) delegate
readwritenonatomicweak

The stream manager delegate.

- (id<IMAVideoDisplay>) videoDisplay
readnonatomicstrong

The video display used for stream playback.

- (IMASettings*) settings
readnonatomicstrong

Stream manager settings.

Note that certain settings will only be evaluated during initialization of the stream manager.

Send feedback about...

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