Transcoder

Transcoder

Code sample

Node.js

To authenticate to Video Intelligence, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.

/**
 * TODO(developer): Uncomment these variables before running the sample.
 */
// const projectId = 'my-project';
// const location = 'us-central1';
const {TranscoderServiceClient} =
  require('@google-cloud/video-transcoder').v1;
const client = new TranscoderServiceClient();
async function listJobs() {
  const [jobs] = await client.listJobs({
    parent: client.locationPath(projectId, location),
  });
  console.info('jobs:');
  for (const job of jobs) {
    console.info(job);
  }
}
listJobs();

What's next

To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.