# Google Cloud Video Live Stream V1 Client - Class MpegCommonEncryption (1.4.0)

1.4.0 (latest) 1.3.2 1.2.1 1.1.3 1.0.0 0.7.5 0.6.2 0.5.0 0.4.2 0.3.2 0.2.6 Reference documentation and code samples for the Google Cloud Video Live Stream V1 Client class MpegCommonEncryption.

Configuration for MPEG-Dash Common Encryption (MPEG-CENC).

Generated from protobuf message `google.cloud.video.livestream.v1.Encryption.MpegCommonEncryption`

## Namespace

Google \\ Cloud \\ Video \\ LiveStream \\ V1 \\ Encryption

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ scheme` | `string` Required. Specify the encryption scheme, supported schemes: - `cenc` - AES-CTR subsample - `cbcs`- AES-CBC subsample pattern |

### getScheme

Required. Specify the encryption scheme, supported schemes:

- `cenc` - AES-CTR subsample
- `cbcs`- AES-CBC subsample pattern

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setScheme

Required. Specify the encryption scheme, supported schemes:

- `cenc` - AES-CTR subsample
- `cbcs`- AES-CBC subsample pattern

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |