# Google Cloud Video Live Stream V1 Client - Class VideoFormat (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 VideoFormat.

Properties of the video format.

Generated from protobuf message `google.cloud.video.livestream.v1.VideoFormat`

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ codec` | `string` Video codec used in this video stream. |
| `↳ width_pixels` | `int` The width of the video stream in pixels. |
| `↳ height_pixels` | `int` The height of the video stream in pixels. |
| `↳ frame_rate` | `float` The frame rate of the input video stream. |

### getCodec

Video codec used in this video stream.

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

### setCodec

Video codec used in this video stream.

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

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

### getWidthPixels

The width of the video stream in pixels.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setWidthPixels

The width of the video stream in pixels.

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

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

### getHeightPixels

The height of the video stream in pixels.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setHeightPixels

The height of the video stream in pixels.

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

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

### getFrameRate

The frame rate of the input video stream.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setFrameRate

The frame rate of the input video stream.

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

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