MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / updateSlate

Function updateSlate

media/video-stitcher/updateSlate.js:34–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32 const stitcherClient = new VideoStitcherServiceClient();
33
34 async function updateSlate() {
35 // Construct request
36 const request = {
37 slate: {
38 name: stitcherClient.slatePath(projectId, location, slateId),
39 uri: slateUri,
40 },
41 updateMask: {
42 paths: ['uri'],
43 },
44 };
45
46 const [operation] = await stitcherClient.updateSlate(request);
47 const [response] = await operation.promise();
48 console.log(`Updated slate: ${response.name}`);
49 console.log(`Updated uri: ${response.uri}`);
50 }
51
52 updateSlate().catch(err => {
53 console.error(err.message);

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected