aboutsummaryrefslogtreecommitdiff
path: root/src/client/Network.ts
diff options
context:
space:
mode:
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();
+ }
}