<IMAVideoDisplay> Protocol Reference

<IMAVideoDisplay> Protocol Reference

Overview

Declares a protocol describing a player capable of playing a stream.

Inheritance diagram for <IMAVideoDisplay>:
IMAAVPlayerVideoDisplay

Instance Methods

(void) - loadURL:withSubtitles:
 Called to inform the VideoDisplay to load the passed URL with the subtitles for the stream. More...
 

Properties

id< IMAVideoDisplayDelegate > delegate
 Allows the player to send events to the SDK. More...
 

Method Documentation

- (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.

Parameters
urlThe URL of the stream
subtitlesThe 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"

Property Documentation

- (id<IMAVideoDisplayDelegate>) delegate
readwritenonatomicweak

Allows the player to send events to the SDK.

Send feedback about...

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