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
field.
Generated from protobuf enum FAILOVER_PREFER_PRIMARY = 1;
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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Google Cloud Video Live Stream V1 Client - Class InputSwitchMode (1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/php/docs/reference/cloud-video-live-stream/latest/V1.InputConfig.InputSwitchMode)\n- [1.2.0](/php/docs/reference/cloud-video-live-stream/1.2.0/V1.InputConfig.InputSwitchMode)\n- [1.1.3](/php/docs/reference/cloud-video-live-stream/1.1.3/V1.InputConfig.InputSwitchMode)\n- [1.0.0](/php/docs/reference/cloud-video-live-stream/1.0.0/V1.InputConfig.InputSwitchMode)\n- [0.7.5](/php/docs/reference/cloud-video-live-stream/0.7.5/V1.InputConfig.InputSwitchMode)\n- [0.6.2](/php/docs/reference/cloud-video-live-stream/0.6.2/V1.InputConfig.InputSwitchMode)\n- [0.5.0](/php/docs/reference/cloud-video-live-stream/0.5.0/V1.InputConfig.InputSwitchMode)\n- [0.4.2](/php/docs/reference/cloud-video-live-stream/0.4.2/V1.InputConfig.InputSwitchMode)\n- [0.3.2](/php/docs/reference/cloud-video-live-stream/0.3.2/V1.InputConfig.InputSwitchMode)\n- [0.2.6](/php/docs/reference/cloud-video-live-stream/0.2.6/V1.InputConfig.InputSwitchMode) \nReference documentation and code samples for the Google Cloud Video Live Stream V1 Client class InputSwitchMode.\n\nInput switch mode.\n\nProtobuf type `google.cloud.video.livestream.v1.InputConfig.InputSwitchMode`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Video \\\\ LiveStream \\\\ V1 \\\\ InputConfig\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### INPUT_SWITCH_MODE_UNSPECIFIED\n\n Value: 0\n\nThe input switch mode is not specified.\n\nGenerated from protobuf enum `INPUT_SWITCH_MODE_UNSPECIFIED = 0;`\n\n### FAILOVER_PREFER_PRIMARY\n\n Value: 1\n\nAutomatic failover is enabled. The primary input stream is always\npreferred over its backup input streams configured using the\n[AutomaticFailover](/php/docs/reference/cloud-video-live-stream/latest/V1.InputAttachment.AutomaticFailover)\nfield.\n\nGenerated from protobuf enum `FAILOVER_PREFER_PRIMARY = 1;`\n\n### MANUAL\n\n Value: 3\n\nAutomatic failover is disabled. You must use the\n[inputSwitch](/php/docs/reference/cloud-video-live-stream/latest/V1.Event#_Google_Cloud_Video_LiveStream_V1_Event__getInputSwitch__) event\nto switch the active input source for the channel to stream from. When\nthis mode is chosen, the\n[AutomaticFailover](/php/docs/reference/cloud-video-live-stream/latest/V1.InputAttachment.AutomaticFailover)\nfield is ignored.\n\nGenerated from protobuf enum `MANUAL = 3;`"]]