()
| 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); |