Transcoder

Transcoder

Codebeispiel

Node.js

Richten Sie zur Authentifizierung bei Video Intelligence die Standardanmeldedaten für Anwendungen ein. Weitere Informationen finden Sie unter Authentifizierung für eine lokale Entwicklungsumgebung einrichten.

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

Nächste Schritte

Informationen zum Suchen und Filtern von Codebeispielen für andere Google Cloud -Produkte finden Sie im Google Cloud Beispielbrowser.