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
field.
MANUAL
value: 3 Automatic failover is disabled. You must use the
inputSwitch event
to switch the active input source for the channel to stream from. When
this mode is chosen, the
AutomaticFailover
field is ignored.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Live Stream V1 API - Module Google::Cloud::Video::LiveStream::V1::InputConfig::InputSwitchMode (v2.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.0 (latest)](/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-InputConfig-InputSwitchMode)\n- [2.1.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/2.1.0/Google-Cloud-Video-LiveStream-V1-InputConfig-InputSwitchMode)\n- [2.0.1](/ruby/docs/reference/google-cloud-video-live_stream-v1/2.0.1/Google-Cloud-Video-LiveStream-V1-InputConfig-InputSwitchMode)\n- [1.3.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/1.3.0/Google-Cloud-Video-LiveStream-V1-InputConfig-InputSwitchMode)\n- [1.2.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/1.2.0/Google-Cloud-Video-LiveStream-V1-InputConfig-InputSwitchMode)\n- [1.1.1](/ruby/docs/reference/google-cloud-video-live_stream-v1/1.1.1/Google-Cloud-Video-LiveStream-V1-InputConfig-InputSwitchMode)\n- [1.0.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/1.0.0/Google-Cloud-Video-LiveStream-V1-InputConfig-InputSwitchMode)\n- [0.9.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.9.0/Google-Cloud-Video-LiveStream-V1-InputConfig-InputSwitchMode)\n- [0.8.2](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.8.2/Google-Cloud-Video-LiveStream-V1-InputConfig-InputSwitchMode)\n- [0.7.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.7.0/Google-Cloud-Video-LiveStream-V1-InputConfig-InputSwitchMode)\n- [0.6.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.6.0/Google-Cloud-Video-LiveStream-V1-InputConfig-InputSwitchMode)\n- [0.5.1](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.5.1/Google-Cloud-Video-LiveStream-V1-InputConfig-InputSwitchMode)\n- [0.4.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.4.0/Google-Cloud-Video-LiveStream-V1-InputConfig-InputSwitchMode)\n- [0.3.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.3.0/Google-Cloud-Video-LiveStream-V1-InputConfig-InputSwitchMode)\n- [0.2.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.2.0/Google-Cloud-Video-LiveStream-V1-InputConfig-InputSwitchMode)\n- [0.1.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.1.0/Google-Cloud-Video-LiveStream-V1-InputConfig-InputSwitchMode) \nReference documentation and code samples for the Live Stream V1 API module Google::Cloud::Video::LiveStream::V1::InputConfig::InputSwitchMode.\n\nInput switch mode.\n\nConstants\n---------\n\n### INPUT_SWITCH_MODE_UNSPECIFIED\n\n**value:** 0 \nThe input switch mode is not specified.\n\n### FAILOVER_PREFER_PRIMARY\n\n**value:** 1 \nAutomatic failover is enabled. The primary input stream is always\npreferred over its backup input streams configured using the\n[AutomaticFailover](/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)\")\nfield.\n\n### MANUAL\n\n**value:** 3 \nAutomatic failover is disabled. You must use the\n[inputSwitch](/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\nto switch the active input source for the channel to stream from. When\nthis mode is chosen, the\n[AutomaticFailover](/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)\")\nfield is ignored."]]