The returned connection object should not be used directly; instead it should be passed as an argument to the constructor of VideoStitcherServiceClient.
The optional options argument may be used to configure aspects of the returned VideoStitcherServiceConnection. 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\u003eThe latest version of the video stitcher API is 2.37.0-rc, while there are many other versions available ranging from 2.36.0 down to 2.11.0 for usage.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eVideoStitcherServiceClient\u003c/code\u003e class allows for the insertion of ads into video on demand (VoD) files.\u003c/p\u003e\n"],["\u003cp\u003eSeveral retry policies for \u003ccode\u003eVideoStitcherServiceConnection\u003c/code\u003e are available, including policies based on error count (\u003ccode\u003eVideoStitcherServiceLimitedErrorCountRetryPolicy\u003c/code\u003e) and elapsed time (\u003ccode\u003eVideoStitcherServiceLimitedTimeRetryPolicy\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eVideoStitcherServiceConnection\u003c/code\u003e can be created using the factory function \u003ccode\u003eMakeVideoStitcherServiceConnection\u003c/code\u003e, which accepts various options to configure the connection behavior.\u003c/p\u003e\n"],["\u003cp\u003eThe function \u003ccode\u003eMakeDefaultVideoStitcherServiceConnectionIdempotencyPolicy\u003c/code\u003e is used to return a \u003ccode\u003eVideoStitcherServiceConnectionIdempotencyPolicy\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Namespace google::cloud::video_stitcher_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__stitcher__v1)\n- [2.41.0](/cpp/docs/reference/video/2.41.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.40.0](/cpp/docs/reference/video/2.40.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.39.0](/cpp/docs/reference/video/2.39.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.38.0](/cpp/docs/reference/video/2.38.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.37.0](/cpp/docs/reference/video/2.37.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.36.0](/cpp/docs/reference/video/2.36.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.35.0](/cpp/docs/reference/video/2.35.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.34.0](/cpp/docs/reference/video/2.34.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.33.0](/cpp/docs/reference/video/2.33.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.32.0](/cpp/docs/reference/video/2.32.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.31.0](/cpp/docs/reference/video/2.31.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.30.0](/cpp/docs/reference/video/2.30.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.29.0](/cpp/docs/reference/video/2.29.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.28.0](/cpp/docs/reference/video/2.28.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.27.0](/cpp/docs/reference/video/2.27.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.26.0](/cpp/docs/reference/video/2.26.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.25.1](/cpp/docs/reference/video/2.25.1/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.24.0](/cpp/docs/reference/video/2.24.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.23.0](/cpp/docs/reference/video/2.23.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.22.1](/cpp/docs/reference/video/2.22.1/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.21.0](/cpp/docs/reference/video/2.21.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.20.0](/cpp/docs/reference/video/2.20.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.19.0](/cpp/docs/reference/video/2.19.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.18.0](/cpp/docs/reference/video/2.18.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.17.0](/cpp/docs/reference/video/2.17.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.16.0](/cpp/docs/reference/video/2.16.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.15.1](/cpp/docs/reference/video/2.15.1/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.14.0](/cpp/docs/reference/video/2.14.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.13.0](/cpp/docs/reference/video/2.13.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.12.0](/cpp/docs/reference/video/2.12.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1)\n- [2.11.0](/cpp/docs/reference/video/2.11.0/namespacegoogle_1_1cloud_1_1video__stitcher__v1) \n\nClasses\n-------\n\n### [VideoStitcherServiceClient](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__stitcher__v1_1_1VideoStitcherServiceClient)\n\nVideo-On-Demand content stitching API allows you to insert ads into (VoD) video on demand files.\n\n### [VideoStitcherServiceConnection](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__stitcher__v1_1_1VideoStitcherServiceConnection)\n\nThe [`VideoStitcherServiceConnection`](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__stitcher__v1_1_1VideoStitcherServiceConnection) object for [`VideoStitcherServiceClient`](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__stitcher__v1_1_1VideoStitcherServiceClient).\n\n### [VideoStitcherServiceConnectionIdempotencyPolicy](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__stitcher__v1_1_1VideoStitcherServiceConnectionIdempotencyPolicy)\n\n### [VideoStitcherServiceLimitedErrorCountRetryPolicy](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__stitcher__v1_1_1VideoStitcherServiceLimitedErrorCountRetryPolicy)\n\nA retry policy for [`VideoStitcherServiceConnection`](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__stitcher__v1_1_1VideoStitcherServiceConnection) based on counting errors.\n\n### [VideoStitcherServiceLimitedTimeRetryPolicy](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__stitcher__v1_1_1VideoStitcherServiceLimitedTimeRetryPolicy)\n\nA retry policy for [`VideoStitcherServiceConnection`](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__stitcher__v1_1_1VideoStitcherServiceConnection) based on elapsed time.\n\n### [VideoStitcherServiceRetryPolicy](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__stitcher__v1_1_1VideoStitcherServiceRetryPolicy)\n\nThe retry policy for [`VideoStitcherServiceConnection`](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__stitcher__v1_1_1VideoStitcherServiceConnection).\n\nStructs\n-------\n\n### [VideoStitcherServiceBackoffPolicyOption](/cpp/docs/reference/video/latest/structgoogle_1_1cloud_1_1video__stitcher__v1_1_1VideoStitcherServiceBackoffPolicyOption)\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### [VideoStitcherServiceConnectionIdempotencyPolicyOption](/cpp/docs/reference/video/latest/structgoogle_1_1cloud_1_1video__stitcher__v1_1_1VideoStitcherServiceConnectionIdempotencyPolicyOption)\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### [VideoStitcherServicePollingPolicyOption](/cpp/docs/reference/video/latest/structgoogle_1_1cloud_1_1video__stitcher__v1_1_1VideoStitcherServicePollingPolicyOption)\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### [VideoStitcherServiceRetryPolicyOption](/cpp/docs/reference/video/latest/structgoogle_1_1cloud_1_1video__stitcher__v1_1_1VideoStitcherServiceRetryPolicyOption)\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### MakeVideoStitcherServiceConnection(Options)\n\nA factory function to construct an object of type [`VideoStitcherServiceConnection`](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__stitcher__v1_1_1VideoStitcherServiceConnection). \nThe returned connection object should not be used directly; instead it should be passed as an argument to the constructor of [VideoStitcherServiceClient](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__stitcher__v1_1_1VideoStitcherServiceClient).\n\nThe optional `options` argument may be used to configure aspects of the returned [`VideoStitcherServiceConnection`](/cpp/docs/reference/video/latest/classgoogle_1_1cloud_1_1video__stitcher__v1_1_1VideoStitcherServiceConnection). 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_stitcher_v1::VideoStitcherServicePolicyOptionList`](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### MakeDefaultVideoStitcherServiceConnectionIdempotencyPolicy()"]]