()
| 30 | const stitcherClient = new VideoStitcherServiceClient(); |
| 31 | |
| 32 | async function listSlates() { |
| 33 | const iterable = await stitcherClient.listSlatesAsync({ |
| 34 | parent: stitcherClient.locationPath(projectId, location), |
| 35 | }); |
| 36 | console.info('Slates:'); |
| 37 | for await (const response of iterable) { |
| 38 | console.log(response.name); |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | listSlates().catch(err => { |
| 43 | console.error(err.message); |