diff options
author | Michael <michael.foiani@gmail.com> | 2022-06-08 18:24:53 -0400 |
---|---|---|
committer | Michael <michael.foiani@gmail.com> | 2022-06-08 18:24:53 -0400 |
commit | 48c60bd982734676f972514f7074be6121e7c5df (patch) | |
tree | 9ad01ac2a78bc61f53cc1b377128bf3c7b103b36 /src/client/Network.ts | |
parent | bc6aa7b8e7c9e43901f500d58acb0ebb6450b0a5 (diff) |
big commit. FINALLY got the combining segments to work using ffmpeg using a different workflow. small ui changes as well.
Diffstat (limited to 'src/client/Network.ts')
-rw-r--r-- | src/client/Network.ts | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/client/Network.ts b/src/client/Network.ts index 8c1f31488..b26f2458d 100644 --- a/src/client/Network.ts +++ b/src/client/Network.ts @@ -35,20 +35,7 @@ export namespace Networking { const response = await fetch("/uploadFormData", parameters); return response.json(); } - - export async function UploadSegmentsAndConcatenate<T extends Upload.FileInformation = Upload.FileInformation>(files: File[]): Promise<Upload.FileResponse<T>[]> { - console.log("network.ts : uploading segments and concatenating", files); - const formData = new FormData(); - if (!Array.isArray(files) || !files.length) return []; - files.forEach(file => formData.append(Utils.GenerateGuid(), file)); - const parameters = { - method: 'POST', - body: formData - }; - const response = await fetch("/uploadVideosandConcatenate", parameters); - return response.json(); - } - + export async function UploadYoutubeToServer<T extends Upload.FileInformation = Upload.FileInformation>(videoId: string): Promise<Upload.FileResponse<T>[]> { const parameters = { method: 'POST', |