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

Function createSlate

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

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected