# Live Stream V1 API - Module Google::Cloud::Video::LiveStream::V1::InputConfig::InputSwitchMode (v2.7.0)

2.7.0 (latest) 2.6.0 2.5.1 2.4.0 2.3.0 2.2.0 2.1.0 2.0.1 1.3.0 1.2.0 1.1.1 1.0.0 0.9.0 0.8.2 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Live Stream V1 API module Google::Cloud::Video::LiveStream::V1::InputConfig::InputSwitchMode.

Input switch mode.

## Constants

### INPUT_SWITCH_MODE_UNSPECIFIED

**value:** 0  
The input switch mode is not specified.

### 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/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-InputAttachment-AutomaticFailover "Google::Cloud::Video::LiveStream::V1::InputAttachment::AutomaticFailover (class)")
field.

### MANUAL

**value:** 3  
Automatic failover is disabled. You must use the
[inputSwitch](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-Event#Google__Cloud__Video__LiveStream__V1__Event_input_switch_instance_ "Google::Cloud::Video::LiveStream::V1::Event#input_switch (method)") 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/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-InputAttachment-AutomaticFailover "Google::Cloud::Video::LiveStream::V1::InputAttachment::AutomaticFailover (class)")
field is ignored.