mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-08 19:11:29 +00:00
removed downloading of render.
This commit is contained in:
1 parent
378634bdd9
commit
49fa226886
1 file changed
-11
@@ -970,17 +970,6 @@ class Editor {
|
||||
// Create a Blob from the output file for downloading
|
||||
const blob = new Blob([output.buffer], { type: "video/mp4" });
|
||||
|
||||
// Create a URL for the blob
|
||||
const url = URL.createObjectURL(blob);
|
||||
|
||||
// Create an anchor element (<a>) and trigger the download
|
||||
const a = document.createElement("a");
|
||||
a.href = url;
|
||||
a.download = "render.mp4"; // Set the file name for the download
|
||||
document.body.appendChild(a); // Append the anchor to the document
|
||||
a.click(); // Simulate a click on the anchor to trigger the download
|
||||
|
||||
|
||||
const data: any = await this.api_manager.uploadMedia(blob, "render.mp4");
|
||||
|
||||
if (data == null) {
|
||||
|
||||
Reference in new issue
Block a user