DrmConfiguration class

Annotations
  • @JS('DrmConfiguration')

Constructors

DrmConfiguration()

Properties

advanced JSObject
Object.<string, shaka.extern.AdvancedDrmConfiguration> Optional. A dictionary which maps key system IDs to advanced DRM configuration for those key systems.
getter/setter pair
clearKeys JSObject
Object.<string, string> Forces the use of the Clear Key CDM. A map of key IDs (hex or base64) to keys (hex or base64).
getter/setter pair
delayLicenseRequestUntilPlayed bool
boolean Defaults to false. True to configure drm to delay sending a license request until a user actually starts playing content.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
initDataTransform InitDataTransform
shaka.extern.InitDataTransform | undefined Optional. If given, this function is called with the init data from the manifest/media and should return the (possibly transformed) init data to pass to the browser.
getter/setter pair
keySystemsMapping JsObject
Object.<string, string> A map of key system name to key system name.
getter/setter pair
logLicenseExchange bool?
boolean Optional. If set to true, prints logs containing the license exchange. This includes the init data, request, and response data, printed as base64 strings. Don't use in production, for debugging only; has no affect in release builds as logging is removed.
getter/setter pair
minHdcpVersion String
string By default (''), do not check the HDCP version. Indicates the minimum version of HDCP to start the playback of encrypted streams. May be ignored if not supported by the device.
getter/setter pair
parseInbandPsshEnabled bool
boolean Defaults to true on Xbox One, and false for all other browsers. When true parse DRM init data from pssh boxes in media and init segments and ignore 'encrypted' events. This is required when using in-band key rotation on Xbox One.
getter/setter pair
persistentSessionOnlinePlayback bool
boolean Defaults to false. True to configure drm to try playback with given persistent session ids before requesting a license. Also prevents the session removal at playback stop, as-to be able to re-use it later.
getter/setter pair
persistentSessionsMetadata List
Array.
getter/setter pair
preferredKeySystems List<String>
Array.
getter/setter pair
retryParameters RetryParameters
shaka.extern.RetryParameters Retry parameters for license requests.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
servers JSObject
Object.<string, string> Required for all but the clear key CDM. A dictionary which maps key system IDs to their license servers. For example, {'com.widevine.alpha': 'https://example.com/drm'}.
getter/setter pair
updateExpirationTime num
number Defaults to 1. The frequency in seconds with which to check the expiration of a session.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited