The returned connection object should not be used directly; instead it should be passed as an argument to the constructor of LivestreamServiceClient.
The optional options argument may be used to configure aspects of the returned LivestreamServiceConnection. Expected options are any of the types in the following option lists:
[[["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-08-28 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the Google Cloud C++ client library's Video Livestream API, offering version-specific references.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API reference is 2.37.0-rc, with a history of versions available from 2.11.0 onwards.\u003c/p\u003e\n"],["\u003cp\u003eKey classes documented include \u003ccode\u003eLivestreamServiceClient\u003c/code\u003e for generating live streams and \u003ccode\u003eLivestreamServiceConnection\u003c/code\u003e for managing the connection to the service.\u003c/p\u003e\n"],["\u003cp\u003eSeveral retry policies are detailed, such as \u003ccode\u003eLivestreamServiceLimitedErrorCountRetryPolicy\u003c/code\u003e and \u003ccode\u003eLivestreamServiceLimitedTimeRetryPolicy\u003c/code\u003e, as well as connection and backoff policy options.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMakeLivestreamServiceConnection\u003c/code\u003e function allows the creation of a \u003ccode\u003eLivestreamServiceConnection\u003c/code\u003e object, and allows the configuration of its behavior with options.\u003c/p\u003e\n"]]],[],null,["# Namespace google::cloud::video_livestream_v1 (2.42.0-rc)\n\nVersion latestkeyboard_arrow_down\n\n- [2.42.0-rc (latest)](/cpp/docs/reference/video/latest/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.41.0](/cpp/docs/reference/video/2.41.0/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.40.0](/cpp/docs/reference/video/2.40.0/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.39.0](/cpp/docs/reference/video/2.39.0/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.38.0](/cpp/docs/reference/video/2.38.0/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.37.0](/cpp/docs/reference/video/2.37.0/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.36.0](/cpp/docs/reference/video/2.36.0/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.35.0](/cpp/docs/reference/video/2.35.0/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.34.0](/cpp/docs/reference/video/2.34.0/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.33.0](/cpp/docs/reference/video/2.33.0/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.32.0](/cpp/docs/reference/video/2.32.0/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.31.0](/cpp/docs/reference/video/2.31.0/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.30.0](/cpp/docs/reference/video/2.30.0/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.29.0](/cpp/docs/reference/video/2.29.0/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.28.0](/cpp/docs/reference/video/2.28.0/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.27.0](/cpp/docs/reference/video/2.27.0/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.26.0](/cpp/docs/reference/video/2.26.0/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.25.1](/cpp/docs/reference/video/2.25.1/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.24.0](/cpp/docs/reference/video/2.24.0/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.23.0](/cpp/docs/reference/video/2.23.0/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.22.1](/cpp/docs/reference/video/2.22.1/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.21.0](/cpp/docs/reference/video/2.21.0/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.20.0](/cpp/docs/reference/video/2.20.0/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.19.0](/cpp/docs/reference/video/2.19.0/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.18.0](/cpp/docs/reference/video/2.18.0/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.17.0](/cpp/docs/reference/video/2.17.0/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.16.0](/cpp/docs/reference/video/2.16.0/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.15.1](/cpp/docs/reference/video/2.15.1/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.14.0](/cpp/docs/reference/video/2.14.0/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.13.0](/cpp/docs/reference/video/2.13.0/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.12.0](/cpp/docs/reference/video/2.12.0/namespacegoogle_1_1cloud_1_1video__livestream__v1)\n- [2.11.0](/cpp/docs/reference/video/2.11.0/namespacegoogle_1_1cloud_1_1video__livestream__v1) \n\nClasses\n-------\n\n### [LivestreamServiceClient](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__livestream__v1_1_1LivestreamServiceClient)\n\nUsing Live Stream API, you can generate live streams in the various renditions and streaming formats.\n\n### [LivestreamServiceConnection](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__livestream__v1_1_1LivestreamServiceConnection)\n\nThe [`LivestreamServiceConnection`](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__livestream__v1_1_1LivestreamServiceConnection) object for [`LivestreamServiceClient`](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__livestream__v1_1_1LivestreamServiceClient).\n\n### [LivestreamServiceConnectionIdempotencyPolicy](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__livestream__v1_1_1LivestreamServiceConnectionIdempotencyPolicy)\n\n### [LivestreamServiceLimitedErrorCountRetryPolicy](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__livestream__v1_1_1LivestreamServiceLimitedErrorCountRetryPolicy)\n\nA retry policy for [`LivestreamServiceConnection`](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__livestream__v1_1_1LivestreamServiceConnection) based on counting errors.\n\n### [LivestreamServiceLimitedTimeRetryPolicy](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__livestream__v1_1_1LivestreamServiceLimitedTimeRetryPolicy)\n\nA retry policy for [`LivestreamServiceConnection`](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__livestream__v1_1_1LivestreamServiceConnection) based on elapsed time.\n\n### [LivestreamServiceRetryPolicy](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__livestream__v1_1_1LivestreamServiceRetryPolicy)\n\nThe retry policy for [`LivestreamServiceConnection`](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__livestream__v1_1_1LivestreamServiceConnection).\n\nStructs\n-------\n\n### [LivestreamServiceBackoffPolicyOption](/cpp/docs/reference/video/latest/structgoogle_1_1cloud_1_1video__livestream__v1_1_1LivestreamServiceBackoffPolicyOption)\n\nUse with [`google::cloud::Options`](https://cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure the backoff policy.\n\n### [LivestreamServiceConnectionIdempotencyPolicyOption](/cpp/docs/reference/video/latest/structgoogle_1_1cloud_1_1video__livestream__v1_1_1LivestreamServiceConnectionIdempotencyPolicyOption)\n\nUse with [`google::cloud::Options`](https://cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure which operations are retried.\n\n### [LivestreamServicePollingPolicyOption](/cpp/docs/reference/video/latest/structgoogle_1_1cloud_1_1video__livestream__v1_1_1LivestreamServicePollingPolicyOption)\n\nUse with [`google::cloud::Options`](https://cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure the long-running operations polling policy.\n\n### [LivestreamServiceRetryPolicyOption](/cpp/docs/reference/video/latest/structgoogle_1_1cloud_1_1video__livestream__v1_1_1LivestreamServiceRetryPolicyOption)\n\nUse with [`google::cloud::Options`](https://cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure the retry policy.\n\nFunctions\n---------\n\n### MakeLivestreamServiceConnection(Options)\n\nA factory function to construct an object of type [`LivestreamServiceConnection`](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__livestream__v1_1_1LivestreamServiceConnection). \nThe returned connection object should not be used directly; instead it should be passed as an argument to the constructor of [LivestreamServiceClient](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__livestream__v1_1_1LivestreamServiceClient).\n\nThe optional `options` argument may be used to configure aspects of the returned [`LivestreamServiceConnection`](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__livestream__v1_1_1LivestreamServiceConnection). Expected options are any of the types in the following option lists:\n\n- [`google::cloud::CommonOptionList`](https://cloud.google.com/cpp/docs/reference/common/latest/namespacegoogle_1_1cloud.html)\n- [`google::cloud::GrpcOptionList`](https://cloud.google.com/cpp/docs/reference/common/latest/namespacegoogle_1_1cloud.html)\n- [`google::cloud::UnifiedCredentialsOptionList`](about:invalid#zCSafez)\n- [`google::cloud::video_livestream_v1::LivestreamServicePolicyOptionList`](about:invalid#zCSafez)\n\n| **Note:** Unexpected options will be ignored. To log unexpected options instead, set `GOOGLE_CLOUD_CPP_ENABLE_CLOG=yes` in the environment.\n\n### MakeDefaultLivestreamServiceConnectionIdempotencyPolicy()"]]