Class: Entitlement

Entitlement


new Entitlement( [options])

Entitlement Base Class

Parameters:
Name Type Argument Description
options Object <optional>

Object of option names and values

Properties
Name Type Argument Default Description
assetId string <optional>
0

asset identifier

playToken string <optional>
''

play token string to be used to authenticate the DRM license requests

mediaLocator string <optional>
''

stream locator to be used by the underlying playback technology

edrmConfig Object <optional>
null

EDRM configuration object as provided by EMP Exposure API

live boolean <optional>
false

set to true if the Entitlement represents a Live stream

minBitrate integer <optional>
0

set to any value >0 to limit the minimum playback bitrate

maxBitrate integer <optional>
0

set to any value >0 to limit the maximum playback bitrate

maxResWidth integer <optional>
0

set to any value >0 to limit the maximum playback resolution width

maxResHeight integer <optional>
0

set to any value >0 to limit the maximum playback resolution height

rwEnabled boolean <optional>
true

set to false to disable rewind option

ffEnabled boolean <optional>
true

set to false to disable fast forward option

protection Object <optional>

certificateUrl and licenseAcquisitionUrl for fairplay

mdnRequestRouterUrl string <optional>
''

MDN request router URL

baseUris Array <optional>
''

baseUris from MDN request router

Members


baseUrl

Returns baseUris from MDN request router


edrmConfig

Returns an EDRM configuration object as provided by EMP Exposure API


live

Returns true if that Entitlement represents a live stream


mediaLocator

See:
  • src

playToken

Returns a play token string to be used to authenticate the DRM license requests


src

Returns the stream locator to be used by the underlying playback technology