diff --git a/video-intelligence/analyze-streaming-object.js b/video-intelligence/analyze-streaming-object.js index 47e2ba46ba..45c75dd97f 100644 --- a/video-intelligence/analyze-streaming-object.js +++ b/video-intelligence/analyze-streaming-object.js @@ -55,7 +55,10 @@ async function main(path = 'YOUR_LOCAL_FILE') { stream.end(); }); - const stream = client.streamingAnnotateVideo().on('data', response => { + const options = {timeout: 120000}; + // Create a job using a long-running operation + + const stream = client.streamingAnnotateVideo(options).on('data', response => { //Gets annotations for video const annotations = response.annotationResults; const objects = annotations.objectAnnotations;