Skip to content

Commit 9888768

Browse files
author
Ace Nassri
committed
Explicitly specify project ID
1 parent 9e1f616 commit 9888768

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

video/quickstart.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
const Video = require('@google-cloud/videointelligence').v1beta1();
2121

2222
// Instantiates a client
23-
const video = Video.videoIntelligenceServiceClient();
23+
const video = Video.videoIntelligenceServiceClient({
24+
projectId: process.env.GCLOUD_PROJECT // Replace with your Google Cloud project ID
25+
});
2426

2527
// The GCS filepath of the video to analyze
2628
const gcsUri = 'gs://nodejs-docs-samples/videointelligence_quickstart.mp4';

0 commit comments

Comments
 (0)