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

Input switch mode.

Protobuf type `google.cloud.video.livestream.v1.InputConfig.InputSwitchMode`

## Namespace

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

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### INPUT_SWITCH_MODE_UNSPECIFIED

    Value: 0

The input switch mode is not specified.

Generated from protobuf enum `INPUT_SWITCH_MODE_UNSPECIFIED = 0;`

### FAILOVER_PREFER_PRIMARY

    Value: 1

Automatic failover is enabled. The primary input stream is always
preferred over its backup input streams configured using the
[AutomaticFailover](https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.InputAttachment.AutomaticFailover)
field.

Generated from protobuf enum `FAILOVER_PREFER_PRIMARY = 1;`

### MANUAL

    Value: 3

Automatic failover is disabled. You must use the
[inputSwitch](https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.Event#_Google_Cloud_Video_LiveStream_V1_Event__getInputSwitch__) event
to switch the active input source for the channel to stream from. When
this mode is chosen, the
[AutomaticFailover](https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.InputAttachment.AutomaticFailover)
field is ignored.

Generated from protobuf enum `MANUAL = 3;`