<br />

Added: 7

## **PROTOCOLS**

## ClearKey

*Defined in [fuchsia.media.drm/services.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/services.fidl;l=110)*

A service hub providing access to the ClearKey key system. This key system
is defined by the [W3C Encrypted Media Extensions](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#W3C Encrypted Media Extensions). It uses plain-text
keys to decrypt the source.

If the client closes the `ClearKey` channel, derived
`ContentDecryptionModule`s will remain active.

[W3C Encrypted Media Extensions](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#W3C Encrypted Media Extensions):
https://www.w3.org/TR/encrypted-media

<br />

### AddDataStore

Adds a client data store to the `KeySystem`.

DRM systems generate data on behalf of clients as part of provisioning
and license management. This data is only usable by the DRM system, but
the client is the owner of the data. The client controls the lifetime of
the data and can select which data set is to be used for a
[ContentDecryptionModule](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ContentDecryptionModule).

- request `data_store_id` a client-assigned identifier for the data store. The identifier is scoped to the `KeySystem` channel. It is invalid for the client to provide [NO_DATA_STORE](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#NO_DATA_STORE) or an already added `data_store_id` and the server should close the channel.
- request `data_store_params` the parameters to be used for this data store.

#### Request

| Name | Type |
|---|---|
| `data_store_id` | `uint32` |
| `data_store_params` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#DataStoreParams` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#KeySystem_AddDataStore_Result` |

### CreateContentDecryptionModule2

Creates a new [ContentDecryptionModule](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ContentDecryptionModule).

Creates a `ContentDecryptionModule` that will use the associated data
store, if provided. If [NO_DATA_STORE](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#NO_DATA_STORE) is provided for the
`data_store_id`, then the created `ContentDecryptionModule` will only
support [LicenseSession](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSession)s of [LicenseSessionType.TEMPORARY](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSessionType.TEMPORARY) type.
If a `data_store_id` is provided, then the created
`ContentDecryptionModule` will persist data to that data store. If the
`KeySystem` requires a data store and `NO_DATA_STORE` was provided or
the `KeySystem` does not support data stores and one was provided, then
the server should close the `cdm`.

If the `data_store_id` does not exist, the `cdm` will be closed with a
`ZX_ERR_NOT_FOUND` epitaph.

- request `data_store_id` the data store that should be used by the `ContentDecryptionModule`.
- request `cdm` the server endpoint of the `ContentDecryptionModule`.

#### Request

| Name | Type |
|---|---|
| `data_store_id` | `uint32` |
| `cdm` | `server_end:https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ContentDecryptionModule` |

### DestroyDataStoreAndConfirm

Destroys the client data store.

This method permanently removes this data store and all of its contents.
All provisioning and license data will be removed and any active
[ContentDecryptionModule](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ContentDecryptionModule) using this data store will be closed.

- request `data_store_id` the client-assigned identifier for the data store to be removed. It is invalid for the client to provide [NO_DATA_STORE](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#NO_DATA_STORE) or a `data_store_id` value that has not previously been added or has been previously destroyed.

#### Request

| Name | Type |
|---|---|
| `data_store_id` | `uint32` |

#### Response

\<EMPTY\>

### GetProperties

Get various static properties of the `KeySystem` implementation.

The properties include the capabilities and requirements of the
`KeySystem`, such as whether the implementation is hardware-based or
whether it requires client-provided data stores to operate.

- response `properties` the properties of the `KeySystem` implementation.

#### Request

\<EMPTY\>

#### Response

| Name | Type |
|---|---|
| `properties` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#KeySystemProperties` |

## ContentDecryptionModule

*Defined in [fuchsia.media.drm/content_decryption.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/content_decryption.fidl;l=24)*

A protocol for managing content license sessions and providing decryption of
media content. There may be zero to many active [LicenseSession](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSession)s
associated with a `ContentDecryptionModule`, each with their own sets of
keys.

From an EME client's perspective, this protocol has a 1:1 relationship with
the MediaKeys object.

<br />

### CreateDecryptor

Creates a Decryptor [fuchsia.media](https://fuchsia.dev/reference/fuchsia.media/)/[StreamProcessor](https://fuchsia.dev/reference/fuchsia.media/#StreamProcessor) to be used to
decrypt content.

This `decryptor` would have access to the union of keys created by all
the active sessions for this [ContentDecryptionModule](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ContentDecryptionModule).

- request `params` the parameters with which to create the `decryptor`.
- request `decryptor` the server endpoint of the `fuchsia.media/StreamProcessor`.

#### Request

| Name | Type |
|---|---|
| `params` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#DecryptorParams` |
| `decryptor` | `server_end:https://fuchsia.dev/reference/fuchsia.media//https://fuchsia.dev/reference/fuchsia.media#StreamProcessor` |

### CreateLicenseSession

Creates a new session for the given type.

The `session_id` will be generated by the [ContentDecryptionModule](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ContentDecryptionModule)
and can be used to reload the session after closing. If the
`session_type` is not supported by the underlying DRM system, it will
immediately close the `license_session`.

- request `session_type` a field containing either [LicenseSessionType.TEMPORARY](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSessionType.TEMPORARY) or [LicenseSessionType.PERSISTENT_LICENSE](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSessionType.PERSISTENT_LICENSE)
- request `license_session` the server endpoint of the [LicenseSession](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSession)

<!-- -->

- response `session_id` an identifier that can be used to reload the session later (if persistent).

#### Request

| Name | Type |
|---|---|
| `session_type` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSessionType` |
| `license_session` | `server_end:https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSession` |

#### Response

| Name | Type |
|---|---|
| `session_id` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#SessionId` |

### GetKeyStatusForHdcpVersion

Queries the status of a hypothetical key associated with an HDCP policy.

This aids clients in determining which content type to fetch prior to
establishing a [LicenseSession](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSession). For example, if the device would
restrict output for HDCP 1.x, then the client can choose to fetch SD
content rather than HD.

- request `hdcp_version` a field containing the HDCP version to check, such as "1.2" or "2.0".

<!-- -->

- response `key_status` a field indicating what the status of a hypothetical key would be for this device if one could be licensed.

#### Request

| Name | Type |
|---|---|
| `hdcp_version` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#HdcpVersion` |

#### Response

| Name | Type |
|---|---|
| `key_status` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#KeyStatus` |

### GetSupportedEncryptionSchemes

Queries for the list of supported encryption schemes.

This returns a list of the supported encryption schemes that the
`ContentDecryptionModule` supports, such as 'cenc' or 'cbcs'. If the
implementation supports passing unencrypted frames through decryption
prior to license arrival, it should also report
`fuchsia.media.UNENCRYPTED` as a supported scheme.

- response `encryption_schemes` a list of the supported encryption schemes.

#### Request

\<EMPTY\>

#### Response

| Name | Type |
|---|---|
| `encryption_schemes` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.media.drm#EncryptionScheme>` |

### LoadLicenseSession

Loads an existing session from storage using the given `session_id`.

If the session is not found, then the `license_session` will be closed.

- request `session_id` contains an identifier of which session should be loaded from storage.
- request `license_session` the server endpoint of the [LicenseSession](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSession).

#### Request

| Name | Type |
|---|---|
| `session_id` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#SessionId` |
| `license_session` | `server_end:https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSession` |

### OnProvisioned

Indicates that the `ContentDecryptionModule` is provisioned.

In order to create `LicenseSession`s, a `ContentDecryptionModule` must
be provisioned. A `ContentDecryptionModule` is not considered
provisioned until it meets the requirements for the underlying DRM
system. The DRM system may not require provisioning, may only require
factory provisioning or may require both factory provisioning and
service instance provisioning.

If the `ContentDecryptionModule` has already has sufficient
provisioning, this event will be sent immediately upon creation. If the
`ContentDecryptionModule` has its provisioning removed, then the server
will close the channel and also close any active `LicenseSession`s or
Decryptors.

If the DRM system does not require provisioning at all, this
event should still be sent to notify the client that it can create
`LicenseSession`s.

#### Response

\<EMPTY\>

### SetServerCertificate

Sets the certificate to be used for encrypting outgoing messages.

- request `certificate` a buffer containing the certificate to be used.

<!-- -->

- error an [Error](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#Error) indicating the reason for failure.

#### Request

| Name | Type |
|---|---|
| `certificate` | `vector<uint8>` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ContentDecryptionModule_SetServerCertificate_Result` |

## KeySystem

*Defined in [fuchsia.media.drm/services.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/services.fidl;l=12)*

### AddDataStore

Adds a client data store to the `KeySystem`.

DRM systems generate data on behalf of clients as part of provisioning
and license management. This data is only usable by the DRM system, but
the client is the owner of the data. The client controls the lifetime of
the data and can select which data set is to be used for a
[ContentDecryptionModule](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ContentDecryptionModule).

- request `data_store_id` a client-assigned identifier for the data store. The identifier is scoped to the `KeySystem` channel. It is invalid for the client to provide [NO_DATA_STORE](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#NO_DATA_STORE) or an already added `data_store_id` and the server should close the channel.
- request `data_store_params` the parameters to be used for this data store.

#### Request

| Name | Type |
|---|---|
| `data_store_id` | `uint32` |
| `data_store_params` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#DataStoreParams` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#KeySystem_AddDataStore_Result` |

### CreateContentDecryptionModule2

Creates a new [ContentDecryptionModule](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ContentDecryptionModule).

Creates a `ContentDecryptionModule` that will use the associated data
store, if provided. If [NO_DATA_STORE](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#NO_DATA_STORE) is provided for the
`data_store_id`, then the created `ContentDecryptionModule` will only
support [LicenseSession](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSession)s of [LicenseSessionType.TEMPORARY](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSessionType.TEMPORARY) type.
If a `data_store_id` is provided, then the created
`ContentDecryptionModule` will persist data to that data store. If the
`KeySystem` requires a data store and `NO_DATA_STORE` was provided or
the `KeySystem` does not support data stores and one was provided, then
the server should close the `cdm`.

If the `data_store_id` does not exist, the `cdm` will be closed with a
`ZX_ERR_NOT_FOUND` epitaph.

- request `data_store_id` the data store that should be used by the `ContentDecryptionModule`.
- request `cdm` the server endpoint of the `ContentDecryptionModule`.

#### Request

| Name | Type |
|---|---|
| `data_store_id` | `uint32` |
| `cdm` | `server_end:https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ContentDecryptionModule` |

### DestroyDataStoreAndConfirm

Destroys the client data store.

This method permanently removes this data store and all of its contents.
All provisioning and license data will be removed and any active
[ContentDecryptionModule](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ContentDecryptionModule) using this data store will be closed.

- request `data_store_id` the client-assigned identifier for the data store to be removed. It is invalid for the client to provide [NO_DATA_STORE](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#NO_DATA_STORE) or a `data_store_id` value that has not previously been added or has been previously destroyed.

#### Request

| Name | Type |
|---|---|
| `data_store_id` | `uint32` |

#### Response

\<EMPTY\>

### GetProperties

Get various static properties of the `KeySystem` implementation.

The properties include the capabilities and requirements of the
`KeySystem`, such as whether the implementation is hardware-based or
whether it requires client-provided data stores to operate.

- response `properties` the properties of the `KeySystem` implementation.

#### Request

\<EMPTY\>

#### Response

| Name | Type |
|---|---|
| `properties` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#KeySystemProperties` |

## LicenseSession

*Defined in [fuchsia.media.drm/license_session.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/license_session.fidl;l=86)*

A protocol for exchanging messages pertaining to the establishment of a
media license and the encryption keys associated with it.

If the client closes the `LicenseSession`, any derived Decryptors will also
be closed as the encryption keys will no longer be maintained.

<br />

### CreateDecryptor

Creates a Decryptor [fuchsia.media](https://fuchsia.dev/reference/fuchsia.media/)/[StreamProcessor](https://fuchsia.dev/reference/fuchsia.media/#StreamProcessor) to be used to
decrypt content.

This `decryptor` would be restricted to only having access to the
keys maintained by this [LicenseSession](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSession).

- request `params` the parameters with which to create the `decryptor`.
- request `decryptor` the server endpoint of the `fuchsia.media/StreamProcessor`.

#### Request

| Name | Type |
|---|---|
| `params` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#DecryptorParams` |
| `decryptor` | `server_end:https://fuchsia.dev/reference/fuchsia.media//https://fuchsia.dev/reference/fuchsia.media#StreamProcessor` |

### GenerateLicenseRelease

Initiates the release process for the license session.

This will cause the [LicenseSession](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSession) to destroy the license and/or
keys associated with the session. If the session is temporary, the
session will send the reply for this request once the license has been
destroyed and then close the `LicenseSession` channel. If the session is
persistent, the session will send the reply for this request once the
license has been destroyed and then it will generate a license release
type [LicenseMessage](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseMessage) through the `OnLicenseMessageGenerated` event.
The client must route that message to the license server and the
server's response to `ProcessLicenseServerMessage`. Once the
`LicenseSession` has received the license server's reply, it will close
the `LicenseSession` channel.

- error an [Error](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#Error) indicating the reason for failure.

#### Request

\<EMPTY\>

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSession_GenerateLicenseRelease_Result` |

### GenerateLicenseRequest

Generates a license request for a session based on the `init_data`.

When the [LicenseMessage](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseMessage) has been created, the
`OnLicenseMessageGenerated` event will be triggered with the message to
be sent to the license server.

- request `init_data` container-specific data that is used to generate a [LicenseMessageType.REQUEST](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseMessageType.REQUEST) `LicenseMessage`.

<!-- -->

- error an [Error](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#Error) indicating the reason for failure.

#### Request

| Name | Type |
|---|---|
| `init_data` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseInitData` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSession_GenerateLicenseRequest_Result` |

### OnKeyStatesChanged

Provides updated key state information.

Some examples on when this might occur would be on license creation,
expiration, renewal, or load of a persistent license session.

- response `key_states` a list of the key_ids and their related [KeyStatusCode](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#KeyStatusCode)s

#### Response

| Name | Type |
|---|---|
| `key_states` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.media.drm#KeyState>` |

### OnLicenseMessageGenerated

Provides a [LicenseMessage](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseMessage) that should be sent to the license server.

The client is responsible for transporting this message to the license
server.

- response `request` a message from the `LicenseSession` that the client should send to the license server.

#### Response

| Name | Type |
|---|---|
| `request` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseMessage` |

### OnReady

Indicates that the [LicenseSession](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSession) has successfully initialized.

This is always the first message sent by the `LicenseSession`.

#### Response

\<EMPTY\>

### ProcessLicenseResponse

Updates the [LicenseSession](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSession) with a message from the license server.

All responses from license requests, renewals, and releases should be
routed to the `LicenseSession` through this method.

- request `response` a message from the license server to update the state of the `LicenseSession`.

<!-- -->

- error an [Error](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#Error) indicating the reason for failure.

#### Request

| Name | Type |
|---|---|
| `response` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseServerMessage` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSession_ProcessLicenseResponse_Result` |

## PlayReady

*Defined in [fuchsia.media.drm/services.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/services.fidl;l=128)*

A service hub providing access to the PlayReady key system.

If the client closes the `PlayReady` channel, derived
`ContentDecryptionModule`s will remain active.

<br />

### AddDataStore

Adds a client data store to the `KeySystem`.

DRM systems generate data on behalf of clients as part of provisioning
and license management. This data is only usable by the DRM system, but
the client is the owner of the data. The client controls the lifetime of
the data and can select which data set is to be used for a
[ContentDecryptionModule](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ContentDecryptionModule).

- request `data_store_id` a client-assigned identifier for the data store. The identifier is scoped to the `KeySystem` channel. It is invalid for the client to provide [NO_DATA_STORE](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#NO_DATA_STORE) or an already added `data_store_id` and the server should close the channel.
- request `data_store_params` the parameters to be used for this data store.

#### Request

| Name | Type |
|---|---|
| `data_store_id` | `uint32` |
| `data_store_params` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#DataStoreParams` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#KeySystem_AddDataStore_Result` |

### CreateContentDecryptionModule2

Creates a new [ContentDecryptionModule](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ContentDecryptionModule).

Creates a `ContentDecryptionModule` that will use the associated data
store, if provided. If [NO_DATA_STORE](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#NO_DATA_STORE) is provided for the
`data_store_id`, then the created `ContentDecryptionModule` will only
support [LicenseSession](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSession)s of [LicenseSessionType.TEMPORARY](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSessionType.TEMPORARY) type.
If a `data_store_id` is provided, then the created
`ContentDecryptionModule` will persist data to that data store. If the
`KeySystem` requires a data store and `NO_DATA_STORE` was provided or
the `KeySystem` does not support data stores and one was provided, then
the server should close the `cdm`.

If the `data_store_id` does not exist, the `cdm` will be closed with a
`ZX_ERR_NOT_FOUND` epitaph.

- request `data_store_id` the data store that should be used by the `ContentDecryptionModule`.
- request `cdm` the server endpoint of the `ContentDecryptionModule`.

#### Request

| Name | Type |
|---|---|
| `data_store_id` | `uint32` |
| `cdm` | `server_end:https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ContentDecryptionModule` |

### DestroyDataStoreAndConfirm

Destroys the client data store.

This method permanently removes this data store and all of its contents.
All provisioning and license data will be removed and any active
[ContentDecryptionModule](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ContentDecryptionModule) using this data store will be closed.

- request `data_store_id` the client-assigned identifier for the data store to be removed. It is invalid for the client to provide [NO_DATA_STORE](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#NO_DATA_STORE) or a `data_store_id` value that has not previously been added or has been previously destroyed.

#### Request

| Name | Type |
|---|---|
| `data_store_id` | `uint32` |

#### Response

\<EMPTY\>

### GetProperties

Get various static properties of the `KeySystem` implementation.

The properties include the capabilities and requirements of the
`KeySystem`, such as whether the implementation is hardware-based or
whether it requires client-provided data stores to operate.

- response `properties` the properties of the `KeySystem` implementation.

#### Request

\<EMPTY\>

#### Response

| Name | Type |
|---|---|
| `properties` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#KeySystemProperties` |

## ProvisioningFetcher

*Defined in [fuchsia.media.drm/provisioning.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/provisioning.fidl;l=43)*

Fetches provisioning from a server.

Some DRM systems require additional runtime provisioning (also known as
individualization). This is a process by which a device receives DRM
credentials (e.g. a certificate) to use for license acquisition for an
individual content provider.

DRM systems use the [ProvisioningFetcher](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ProvisioningFetcher) to fetch the provisioning when
the system determines that it is needed.

<br />

### Fetch

Fetches provisioning from a server.

Called by the DRM system when it is in need of provisioning.

- request `request` a [ProvisioningRequest](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ProvisioningRequest) message to be provided to a provisioning server.

<!-- -->

- response `response` a [ProvisioningResponse](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ProvisioningResponse) message from the provisioning server.

#### Request

| Name | Type |
|---|---|
| `request` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ProvisioningRequest` |

#### Response

| Name | Type |
|---|---|
| `response` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ProvisioningResponse` |

## Widevine

*Defined in [fuchsia.media.drm/services.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/services.fidl;l=119)*

A service hub providing access to the Widevine key system.

If the client closes the `Widevine` channel, derived
`ContentDecryptionModule`s will remain active.

<br />

### AddDataStore

Adds a client data store to the `KeySystem`.

DRM systems generate data on behalf of clients as part of provisioning
and license management. This data is only usable by the DRM system, but
the client is the owner of the data. The client controls the lifetime of
the data and can select which data set is to be used for a
[ContentDecryptionModule](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ContentDecryptionModule).

- request `data_store_id` a client-assigned identifier for the data store. The identifier is scoped to the `KeySystem` channel. It is invalid for the client to provide [NO_DATA_STORE](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#NO_DATA_STORE) or an already added `data_store_id` and the server should close the channel.
- request `data_store_params` the parameters to be used for this data store.

#### Request

| Name | Type |
|---|---|
| `data_store_id` | `uint32` |
| `data_store_params` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#DataStoreParams` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#KeySystem_AddDataStore_Result` |

### CreateContentDecryptionModule2

Creates a new [ContentDecryptionModule](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ContentDecryptionModule).

Creates a `ContentDecryptionModule` that will use the associated data
store, if provided. If [NO_DATA_STORE](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#NO_DATA_STORE) is provided for the
`data_store_id`, then the created `ContentDecryptionModule` will only
support [LicenseSession](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSession)s of [LicenseSessionType.TEMPORARY](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSessionType.TEMPORARY) type.
If a `data_store_id` is provided, then the created
`ContentDecryptionModule` will persist data to that data store. If the
`KeySystem` requires a data store and `NO_DATA_STORE` was provided or
the `KeySystem` does not support data stores and one was provided, then
the server should close the `cdm`.

If the `data_store_id` does not exist, the `cdm` will be closed with a
`ZX_ERR_NOT_FOUND` epitaph.

- request `data_store_id` the data store that should be used by the `ContentDecryptionModule`.
- request `cdm` the server endpoint of the `ContentDecryptionModule`.

#### Request

| Name | Type |
|---|---|
| `data_store_id` | `uint32` |
| `cdm` | `server_end:https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ContentDecryptionModule` |

### DestroyDataStoreAndConfirm

Destroys the client data store.

This method permanently removes this data store and all of its contents.
All provisioning and license data will be removed and any active
[ContentDecryptionModule](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ContentDecryptionModule) using this data store will be closed.

- request `data_store_id` the client-assigned identifier for the data store to be removed. It is invalid for the client to provide [NO_DATA_STORE](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#NO_DATA_STORE) or a `data_store_id` value that has not previously been added or has been previously destroyed.

#### Request

| Name | Type |
|---|---|
| `data_store_id` | `uint32` |

#### Response

\<EMPTY\>

### GetProperties

Get various static properties of the `KeySystem` implementation.

The properties include the capabilities and requirements of the
`KeySystem`, such as whether the implementation is hardware-based or
whether it requires client-provided data stores to operate.

- response `properties` the properties of the `KeySystem` implementation.

#### Request

\<EMPTY\>

#### Response

| Name | Type |
|---|---|
| `properties` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#KeySystemProperties` |

## **STRUCTS**

### ContentDecryptionModule_SetServerCertificate_Response

*Defined in [fuchsia.media.drm/content_decryption.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/content_decryption.fidl;l=51)*

\<EMPTY\>

### KeySystem_AddDataStore_Response

*Defined in [fuchsia.media.drm/services.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/services.fidl;l=42)*

\<EMPTY\>

### LicenseInitData

*Defined in [fuchsia.media.drm/license_session.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/license_session.fidl;l=34)*

| Field | Type | Description | Default |
|---|---|---|---|
| `type` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseInitDataType` | The type is a string that indicates the format of the accompanying init data. Common types include "cenc", "keyids", "webm", and "hls". CDMs may also define their own. | No default |
| `data` | `vector<uint8>` |   | No default |

### LicenseMessage [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

*Defined in [fuchsia.media.drm/license_session.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/license_session.fidl;l=44)*

A message originating from the [LicenseSession](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSession) that the caller must route
to the license server.

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `type` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseMessageType` |   | No default |
| `message` | `https://fuchsia.dev/reference/fuchsia.mem//https://fuchsia.dev/reference/fuchsia.mem#Buffer` |   | No default |

### LicenseServerMessage [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

*Defined in [fuchsia.media.drm/license_session.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/license_session.fidl;l=51)*

A message originating from the license server that the caller must provide
to the [LicenseSession](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSession) via `ProcessLicenseServerMessage`.

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `message` | `https://fuchsia.dev/reference/fuchsia.mem//https://fuchsia.dev/reference/fuchsia.mem#Buffer` |   | No default |

### LicenseSession_GenerateLicenseRelease_Response

*Defined in [fuchsia.media.drm/license_session.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/license_session.fidl;l=120)*

\<EMPTY\>

### LicenseSession_GenerateLicenseRequest_Response

*Defined in [fuchsia.media.drm/license_session.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/license_session.fidl;l=103)*

\<EMPTY\>

### LicenseSession_ProcessLicenseResponse_Response

*Defined in [fuchsia.media.drm/license_session.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/license_session.fidl;l=132)*

\<EMPTY\>

### ProvisioningRequest [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

*Defined in [fuchsia.media.drm/provisioning.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/provisioning.fidl;l=11)*

Message passed to a [ProvisioningFetcher](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ProvisioningFetcher) by a DRM system, to pass on to
the provisioning server.

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `default_provisioning_server_url` | `https://fuchsia.dev/reference/fuchsia.url//https://fuchsia.dev/reference/fuchsia.url#Url` | A suggested server to send the `message` to. | No default |
| `message` | `https://fuchsia.dev/reference/fuchsia.mem//https://fuchsia.dev/reference/fuchsia.mem#Buffer` | The DRM system specific provisioning request message body to be delivered to the provisioning server. The VMO must at least have the following rights: ZX_RIGHT_READ ZX_RIGHT_TRANSFER | No default |

### ProvisioningResponse [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

*Defined in [fuchsia.media.drm/provisioning.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/provisioning.fidl;l=25)*

Message originating from the provisioning server that the
[ProvisioningFetcher](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ProvisioningFetcher) must pass back to the DRM system.

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `message` | `https://fuchsia.dev/reference/fuchsia.mem//https://fuchsia.dev/reference/fuchsia.mem#Buffer` | The DRM system specific provisioning response message body received from the provisioning server. The VMO must at least have the following rights: ZX_RIGHT_READ ZX_RIGHT_TRANSFER | No default |

## **ENUMS**

### Error [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.media.drm/error.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/error.fidl;l=13)*

Standard error codes for DRM related protocols. Many of the error code names
originate from the [W3C Encrypted Media Extensions](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#W3C Encrypted Media Extensions) specification to cover
common CDM exception cases.

[W3C Encrypted Media Extensions](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#W3C Encrypted Media Extensions):
https://www.w3.org/TR/encrypted-media

<br />

| Name | Value | Description |
|---|---|---|
| ### TYPE | `1` | An error that occurs when the client provides invalid parameter data to the server, such as an invalid license response message. |
| ### NOT_SUPPORTED | `2` | An error that occurs when a requested operation is not supported by the CDM, such as a license generation request with an unknown initialization data type. |
| ### INVALID_STATE | `3` | An error that occurs when the CDM is not in a proper state to perform the requested operation, such as calling [LicenseSession.GenerateLicenseRequest](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSession.GenerateLicenseRequest) when the [LicenseSession](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSession) has already started the license release process. |
| ### QUOTA_EXCEEDED | `4` | An error that occurs when a requested action would exceed allowable limits, such as attempting to load an already opened session. |
| ### INTERNAL | `100` | An internal, unexpected error that is not actionable by the client. |
| ### NOT_PROVISIONED | `101` | An error that occurs when the CDM is not usable because it requires additional provisioning. |

### KeyStatus [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.media.drm/license_session.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/license_session.fidl;l=56)*

| Name | Value | Description |
|---|---|---|
| ### USABLE | `0` | The key is currently usable for decryption. |
| ### EXPIRED | `1` | The Key is no longer usable for decryption because it has expired. |
| ### RELEASED | `2` | The Key is no longer usable for decryption, but is still known to the CDM. |
| ### OUTPUT_RESTRICTED | `3` | The Key has output restrictions that cannot currently be met and may be unusable for decryption. |
| ### OUTPUT_DOWNSCALED | `4` | The Key has output restrictions that cannot currently be met. The Key may be usable for decryption with lower quality content. |
| ### STATUS_PENDING | `5` | The Key is not yet known or usable for decryption. |
| ### INTERNAL_ERROR | `6` | The Key is not usable for decryption because of an internal error. |

### LicenseMessageType [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.media.drm/license_session.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/license_session.fidl;l=28)*

| Name | Value | Description |
|---|---|---|
| ### REQUEST | `1` |   |
| ### RENEWAL | `2` |   |
| ### RELEASE | `3` |   |

### LicenseSessionType [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.media.drm/license_session.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/license_session.fidl;l=17)*

| Name | Value | Description |
|---|---|---|
| ### TEMPORARY | `1` | A session for which the license, keys, and record of the session are not persisted. |
| ### PERSISTENT_LICENSE | `2` | A session for which the license, keys, and record of the session will be persisted for offline use and can subsequently be loaded using LoadSession(). |

### Requirement [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.media.drm/properties.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/properties.fidl;l=17)*

| Name | Value | Description |
|---|---|---|
| ### NOT_SUPPORTED | `1` |   |
| ### OPTIONAL | `2` |   |
| ### REQUIRED | `3` |   |

## **TABLES**

### DataStoreParams [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

*Defined in [fuchsia.media.drm/services.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/services.fidl;l=82)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `data_directory` | `client_end:https://fuchsia.dev/reference/fuchsia.io//https://fuchsia.dev/reference/fuchsia.io#Directory` | Directory into which this data store should write persistent provisioning and licenses, or their proxy. This field is required. |
| ### 2 | `provision_server_certificate` | `vector<uint8>` | Certificate to use for encrypting provisioning messages. This field is optional. |
| ### 3 | `provisioning_fetcher` | `client_end:https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ProvisioningFetcher` | The client endpoint of the [ProvisioningFetcher](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ProvisioningFetcher) to be used when this data store requires provisioning. If the DRM system requires data store provisioning, then this field is required to be set. Otherwise, it is optional. |

### DecryptorParams

*Defined in [fuchsia.media.drm/content_decryption.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/content_decryption.fidl;l=8)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `require_secure_mode` | `bool` | Requires the decryptor [fuchsia.media](https://fuchsia.dev/reference/fuchsia.media/)/[StreamProcessor](https://fuchsia.dev/reference/fuchsia.media/#StreamProcessor) to only output to secure buffers. |
| ### 2 | `input_details` | `https://fuchsia.dev/reference/fuchsia.media//https://fuchsia.dev/reference/fuchsia.media#FormatDetails` | Initial format details for the [fuchsia.media](https://fuchsia.dev/reference/fuchsia.media/)/[StreamProcessor](https://fuchsia.dev/reference/fuchsia.media/#StreamProcessor). |

### KeyState

*Defined in [fuchsia.media.drm/license_session.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/license_session.fidl;l=76)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `key_id` | `https://fuchsia.dev/reference/fuchsia.media//https://fuchsia.dev/reference/fuchsia.media#KeyId` |   |
| ### 2 | `status` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#KeyStatus` |   |

### KeySystemProperties

*Defined in [fuchsia.media.drm/properties.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/properties.fidl;l=23)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `features` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#Features` | Various flags indicating supported features of the [KeySystem](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#KeySystem). This field is required. |
| ### 2 | `data_store_requirement` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#Requirement` | Indicates the data store requirements of the [KeySystem](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#KeySystem). See [KeySystem.ContentDecryptionModule2](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#KeySystem.ContentDecryptionModule2) for implications of different values. This field is required. |
| ### 3 | `license_session_types` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSessionType>` | Indicates the supported license session types. This field is required and the list must not be empty. |
| ### 4 | `init_data_types` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseInitDataType>` | Indicates the supported init data types. This field is required and the list must not be empty. |
| ### 5 | `encryption_schemes` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.media.drm#EncryptionScheme>` | Indicates the supported encryption schemes. This field is required and the list must not be empty. |

## **UNIONS**

### ContentDecryptionModule_SetServerCertificate_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.media.drm/content_decryption.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/content_decryption.fidl;l=51)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ContentDecryptionModule_SetServerCertificate_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#Error` |   |

<br />

### KeySystem_AddDataStore_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.media.drm/services.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/services.fidl;l=42)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#KeySystem_AddDataStore_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#Error` |   |

<br />

### LicenseSession_GenerateLicenseRelease_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.media.drm/license_session.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/license_session.fidl;l=120)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSession_GenerateLicenseRelease_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#Error` |   |

<br />

### LicenseSession_GenerateLicenseRequest_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.media.drm/license_session.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/license_session.fidl;l=103)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSession_GenerateLicenseRequest_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#Error` |   |

<br />

### LicenseSession_ProcessLicenseResponse_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.media.drm/license_session.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/license_session.fidl;l=132)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#LicenseSession_ProcessLicenseResponse_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/fidl/fuchsia.media.drm#Error` |   |

<br />

## **BITS**

### Features [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.media.drm/properties.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/properties.fidl;l=7)*

| Name | Value | Description |
|---|---|---|
| ### HARDWARE_CRYPTO | 1 | All key management and crypto operations are performed in a hardware based trusted execution environment. If not set, a software implementation is used. |
| ### SECURE_OUTPUT | 2 | Decrypted data can be written to hardware secure buffers. |

## **CONSTANTS**

| Name | Value | Type | Description |
|---|---|---|---|
| [LICENSE_INIT_DATA_TYPE_CENC](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/license_session.fidl;l=11) | `cenc` | `String` |   |
| [LICENSE_INIT_DATA_TYPE_HLS](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/license_session.fidl;l=14) | `hls` | `String` |   |
| [LICENSE_INIT_DATA_TYPE_KEYIDS](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/license_session.fidl;l=12) | `keyids` | `String` |   |
| [LICENSE_INIT_DATA_TYPE_WEBM](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/license_session.fidl;l=13) | `webm` | `String` |   |
| [MAX_HDCP_VERSION_SIZE](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/types.fidl;l=10) | `16` | `uint32` |   |
| [MAX_LICENSE_INIT_DATA_TYPE_SIZE](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/types.fidl;l=9) | `100` | `uint32` |   |
| [MAX_SESSION_ID_SIZE](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/types.fidl;l=8) | `512` | `uint32` |   |
| [NO_DATA_STORE](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/services.fidl;l=10) | `0` | `uint32` | A sentinel value for use with [KeySystem.CreateContentDecryptionModule2](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#KeySystem.CreateContentDecryptionModule2) to create a [ContentDecryptionModule](https://fuchsia.dev/reference/fidl/fuchsia.media.drm#ContentDecryptionModule) without a client data store. |

## **ALIASES**

| Name | Value | Description |
|---|---|---|
| [EncryptionScheme](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/types.fidl;l=15) | `string` |   |
| [HdcpVersion](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/types.fidl;l=14) | `string`\[`https://fuchsia.dev/reference/fidl/fuchsia.media.drm#MAX_HDCP_VERSION_SIZE`\] |   |
| [LicenseInitDataType](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/types.fidl;l=13) | `string`\[`https://fuchsia.dev/reference/fidl/fuchsia.media.drm#MAX_LICENSE_INIT_DATA_TYPE_SIZE`\] |   |
| [SessionId](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.media.drm/types.fidl;l=12) | `string`\[`https://fuchsia.dev/reference/fidl/fuchsia.media.drm#MAX_SESSION_ID_SIZE`\] |   |