mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-17 07:04:36 +00:00
Feature/Depth options (#609)
Co-authored-by: Quicksticks-oss <chongobongotoday@gmail.com> Co-authored-by: bflatastic <bombayapirat@gmail.com>
This commit is contained in:
17 files changed
+992
-252
No files matched your search
@@ -13,7 +13,7 @@ declare const process: {
|
||||
BASE_API: string;
|
||||
};
|
||||
};
|
||||
|
||||
// TODO REPLACE THIS
|
||||
export async function uploadMediaFile({
|
||||
blob,
|
||||
fileName,
|
||||
|
||||
@@ -136,7 +136,7 @@ async function stopPlaybackAndUploadVideo(
|
||||
const canvas = new Canvas(1024, 576);
|
||||
const context = canvas.getContext("2d");
|
||||
const folder = uuid.v4();
|
||||
|
||||
// use then...
|
||||
await new Promise<void>((resolve) => {
|
||||
fs.mkdir(`./${folder}`, () => {
|
||||
fs.mkdir(`./${folder}/images`, () => {
|
||||
@@ -256,6 +256,7 @@ async function stopPlaybackAndUploadVideo(
|
||||
const media_token = video.current_scene_media_token || undefined;
|
||||
|
||||
console.log("Upload file");
|
||||
// TODO REPLACE
|
||||
const uploadData: any = await uploadMediaFile({
|
||||
blob,
|
||||
fileName: `${title}.mp4`,
|
||||
|
||||
Reference in new issue
Block a user