An implementation of the IMAVideoDisplay protocol.
This object is intended to be initialized with the content player. The SDK will use this player to play the stream.
|Creates an IMAAVPlayerVideoDisplay that will play the stream in the passed in video player. More...|
|Resets the IMAAVPlayerVideoDisplay and removes any observers on the player item. More...|
|Called to inform the VideoDisplay to load the passed URL with the subtitles for the stream. More...|
|The player used for stream playback. More...|
< IMAAVPlayerVideoDisplayDelegate >
|Allows the publisher to receive IMAAVPlayerVideoDisplay specific events. More...|
|NSArray< NSDictionary * > *||subtitles|
|The subtitles for the current stream. More...|
|id< IMAVideoDisplayDelegate >||delegate|
|Allows the player to send events to the SDK. More...|
|- (instancetype) initWithAVPlayer:||(AVPlayer *)||player|
|- (void) reset|
Resets the IMAAVPlayerVideoDisplay and removes any observers on the player item.
|- (void) loadURL:||(NSURL *)||url|
|withSubtitles:||(NSArray< NSDictionary * > *)||subtitles|
Called to inform the VideoDisplay to load the passed URL with the subtitles for the stream.
Subtitles are available only for dynamic ad insertion VOD streams and can be ignored for client side ads or dynamic ad insertion live streams.
url The URL of the stream subtitles The subtitles for the stream. Each entry in the subtitles array is an NSDictionary that corresponds to a language. Each dictionary will have a language key with a two letter language string value and one or more subtitle key/value pairs. Here's an example NSDictionary for English:
"language" -> "en" "webvtt" -> "https://somedomain.com/vtt/en.vtt" "ttml" -> "https://somedomain.com/ttml/en.ttml"
The player used for stream playback.
Allows the publisher to receive IMAAVPlayerVideoDisplay specific events.
The subtitles for the current stream.
Will be nil until the stream starts playing.
Allows the player to send events to the SDK.