diff --git a/video-intelligence/analyze.js b/video-intelligence/analyze.js index 1d1756c747..59e3a16443 100644 --- a/video-intelligence/analyze.js +++ b/video-intelligence/analyze.js @@ -18,7 +18,7 @@ function analyzeFaces(gcsUri) { // [START analyze_faces] // Imports the Google Cloud Video Intelligence library - const video = require('@google-cloud/video-intelligence'); + const video = require('@google-cloud/video-intelligence').v1; // Creates a client const client = new video.VideoIntelligenceServiceClient(); @@ -83,7 +83,7 @@ function analyzeFaces(gcsUri) { function analyzeLabelsGCS(gcsUri) { // [START analyze_labels_gcs] // Imports the Google Cloud Video Intelligence library - const video = require('@google-cloud/video-intelligence'); + const video = require('@google-cloud/video-intelligence').v1; // Creates a client const client = new video.VideoIntelligenceServiceClient(); @@ -148,7 +148,7 @@ function analyzeLabelsGCS(gcsUri) { function analyzeLabelsLocal(path) { // [START analyze_labels_local] // Imports the Google Cloud Video Intelligence library + Node's fs library - const video = require('@google-cloud/video-intelligence'); + const video = require('@google-cloud/video-intelligence').v1; const fs = require('fs'); // Creates a client @@ -219,7 +219,7 @@ function analyzeLabelsLocal(path) { function analyzeShots(gcsUri) { // [START analyze_shots] // Imports the Google Cloud Video Intelligence library - const video = require('@google-cloud/video-intelligence'); + const video = require('@google-cloud/video-intelligence').v1; // Creates a client const client = new video.VideoIntelligenceServiceClient(); @@ -290,7 +290,7 @@ function analyzeShots(gcsUri) { function analyzeSafeSearch(gcsUri) { // [START analyze_safe_search] // Imports the Google Cloud Video Intelligence library - const video = require('@google-cloud/video-intelligence'); + const video = require('@google-cloud/video-intelligence').v1; // Creates a client const client = new video.VideoIntelligenceServiceClient(); diff --git a/video-intelligence/package.json b/video-intelligence/package.json index 78f0cead59..533ac13328 100644 --- a/video-intelligence/package.json +++ b/video-intelligence/package.json @@ -14,7 +14,7 @@ "test": "repo-tools test run --cmd ava -- -T 5m --verbose system-test/*.test.js" }, "dependencies": { - "@google-cloud/video-intelligence": "^0.4.0", + "@google-cloud/video-intelligence": "^1.0.0", "long": "^3.2.0", "safe-buffer": "5.1.1", "yargs": "10.0.3"