aboutsummaryrefslogtreecommitdiff
path: root/src/client/Network.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-09-23 15:29:22 -0400
committerbobzel <zzzman@gmail.com>2022-09-23 15:29:22 -0400
commit357247845341ef5e92d74883aeea093351d18490 (patch)
treec2ce78960d00bb4cb917472693e7d79ba73473fd /src/client/Network.ts
parent887bd92f2b02715194d9ae0da02ba957126088d2 (diff)
added progress messages to youtube uploads
Diffstat (limited to 'src/client/Network.ts')
-rw-r--r--src/client/Network.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/client/Network.ts b/src/client/Network.ts
index 996eb35d8..19eff3b3b 100644
--- a/src/client/Network.ts
+++ b/src/client/Network.ts
@@ -62,4 +62,13 @@ export namespace Networking {
const response = await fetch('/uploadYoutubeVideo', parameters);
return response.json();
}
+ export async function QueryYoutubeProgress(videoId: string): Promise<{ progress: string }> {
+ const parameters = {
+ method: 'POST',
+ body: JSON.stringify({ videoId }),
+ json: true,
+ };
+ const response = await fetch('/queryYoutubeProgress', parameters);
+ return response.json();
+ }
}