Skip to main content
Version: 11.3.0

MediaKind Connector API

The attributes, methods and events for the THEOMediaKindConnector.

Attributes

NameTypeDefaultAccess PermissionDescription
idstringread,writeThe id of the node.

Methods

MethodParamsDescription
configureplayer: THEOplayer, config: MediaKindConfigAdd a player for playback and a configuration for MediaKind.
setSessionsession: MediaKindSessionSets the configuration for a MediaKind session.
destroynoneDestroy the connector.

MediaKindConfig

The configuration for the MediaKind connector is the THEOMediaKindConfig interface.

NameTypeDefaultDescription
requestBaseUrlstringBase URL for Azuki API requests. For example, https://ottapp-appgw-amp.prodb.nfl.tv3cloud.com/v1/client.
AuthorizationTokenstringAuthorization token used for STS requests.
AzukiIMCstringAzuki IMC version.
DeviceProfilestringBase64-encoded information about the client device.
key_idstringDRM key identifier.
debugbooleanfalseLog debug info.

MediaKindSession

The configuration for a MediaKind session. This is meant to be the means to pass the response of the MediaKind roll call to the THEOMediaKindConnector.

Required fields

NameTypeDescription
mediaIdstringMedia identifier.
ApplicationTokenstringService-specific token. Required for Live, Catchup, and Recording playback, but not for VOD.
sessionIdstringA unique session identifier.
ownerUidstringUnique identifier of the owner of the asset being played.

Optional fields

NameTypeDefaultDescription
manifest_uristringURI of the manifest.
cdnsCDN[]CDN endpoints available for this session.
drm_typestringDRM method used for playback. Valid values are widevine or playready.
platformstringA descriptive platform string.
personal_infostringBase64-encoded JSON containing geographic and personal details.
beaconIntervalinteger30The interval at which beacon requests should be executed, in seconds.
livebooleanfalseWhether the content is live. This property is used in the payload for beacons requests.
inHomebooleanfalseWhether the client is streaming from a home network. This property is used in the payload for beacons requests.

CDN

A CDN endpoint for playback of a session.

NameTypeDefaultDescription
namestringName of the CDN.
retrieval_typestringRetrieval type of the CDN. For example, static.
base_uristringBase URI for the CDN.
priorityintegerPriority of the CDN.
thresholdintegerThreshold of the CDN.