Skip to content

Commit

Permalink
chore: increased timeout on flaky service (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
munkhuushmgl authored and Ace Nassri committed Nov 17, 2022
1 parent e22b38a commit 076f1e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion video-intelligence/analyze-streaming-object.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 076f1e8

Please sign in to comment.