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

Function startChannel

media/livestream/startChannel.js:33–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 const livestreamServiceClient = new LivestreamServiceClient();
32
33 async function startChannel() {
34 // Construct request
35 const request = {
36 name: livestreamServiceClient.channelPath(projectId, location, channelId),
37 };
38 const [operation] = await livestreamServiceClient.startChannel(request);
39 await operation.promise();
40 console.log('Started channel');
41 }
42
43 startChannel();
44 // [END livestream_start_channel]

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected