Browse Source

UI: Increase YouTube API timeout

The OBS client side timeout for the YouTube API is too short. New
changes proposed to the YouTube API will cause this to fail for
creating a broadcast. Increase to a minimum of 60.
joelgerard 2 years ago
parent
commit
83c4f5383e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      UI/youtube-api-wrappers.cpp

+ 1 - 1
UI/youtube-api-wrappers.cpp

@@ -90,7 +90,7 @@ bool YoutubeApiWrappers::TryInsertCommand(const char *url,
 	std::string output;
 	std::string error;
 	// Increase timeout by the time it takes to transfer `data_size` at 1 Mbps
-	int timeout = 5 + data_size / 125000;
+	int timeout = 60 + data_size / 125000;
 	bool success = GetRemoteFile(url, output, error, &httpStatusCode,
 				     content_type, request_type, data,
 				     {"Authorization: Bearer " + token},