- Source:
Members
(private, static, constant) CencNamespaceUri_ :string
Type:
- string
- Source:
(private, static, constant, non-null) defaultKeySystems_ :Object.<string, string>
    A map of scheme URI to key system name.
    Type:
- Object.<string, string>
- Source:
(private, static, constant) MP4Protection_ :string
Type:
- string
- Source:
Methods
(private, static) convertElements_(defaultInit, callback, elementsnon-null) → (non-null) {Array.<shakaExtern.DrmInfo>}
    Creates DrmInfo objects from the given element.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| defaultInit | Array.<shakaExtern.InitDataOverride> | |
| callback | shakaExtern.DashContentProtectionCallback | |
| elements | Array.<shaka.dash.ContentProtection.Element> | 
- Source:
Returns:
- Type
- Array.<shakaExtern.DrmInfo>
(private, static) parseElements_(elemsnon-null) → (non-null) {Array.<shaka.dash.ContentProtection.Element>}
    Parses the given ContentProtection elements.  If there is an error, it
removes those elements.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| elems | Array.<!Element> | 
- Source:
Returns:
- Type
- Array.<shaka.dash.ContentProtection.Element>
(static) parseFromAdaptationSet(elemsnon-null, callback, ignoreDrmInfo) → {shaka.dash.ContentProtection.Context}
    Parses info from the ContentProtection elements at the AdaptationSet level.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| elems | Array.<!Element> | |
| callback | shakaExtern.DashContentProtectionCallback | |
| ignoreDrmInfo | boolean | 
- Source:
Returns:
(static) parseFromRepresentation(elemsnon-null, callback, context, ignoreDrmInfo) → (nullable) {string}
    Parses the given ContentProtection elements found at the Representation
level.  This may update the |context|.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| elems | Array.<!Element> | |
| callback | shakaExtern.DashContentProtectionCallback | |
| context | shaka.dash.ContentProtection.Context | |
| ignoreDrmInfo | boolean | 
- Source:
Returns:
    The parsed key ID
- Type
- string
Type Definitions
Context
    Contains information about the ContentProtection elements found at the
AdaptationSet level.
    Type:
- {defaultKeyId: ?string, defaultInit: Array.<shakaExtern.InitDataOverride>, drmInfos: !Array.<shakaExtern.DrmInfo>, firstRepresentation: boolean}
Properties:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| defaultKeyId | string | <nullable> | The default key ID to use. This is used by parseKeyIds as a default. This can be null to indicate that there is no default. | 
| defaultInit | Array.<shakaExtern.InitDataOverride> | The default init data override. This can be null to indicate that there is no default. | |
| drmInfos | Array.<shakaExtern.DrmInfo> | The DrmInfo objects. | |
| firstRepresentation | boolean | True when first parsed; changed to false after the first call to parseKeyIds. This is used to determine if a dummy key-system should be overwritten; namely that the first representation can replace the dummy from the AdaptationSet. | 
- Source:
Element
    The parsed result of a single ContentProtection element.
    Type:
- {node: !Element, schemeUri: string, keyId: ?string, init: Array.<shakaExtern.InitDataOverride>}
Properties:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| node | Element | The ContentProtection XML element. | |
| schemeUri | string | The scheme URI. | |
| keyId | string | <nullable> | The default key ID, if present. | 
| init | Array.<shakaExtern.InitDataOverride> | The init data, if present. If there is no init data, it will be null. If this is non-null, there is at least one element. | 
- Source: