Feature/Depth options (#609)

Co-authored-by: Quicksticks-oss <chongobongotoday@gmail.com>
Co-authored-by: bflatastic <bombayapirat@gmail.com>
This commit is contained in:
authored and GitHub committed 2024-07-12 12:11:33 -04:00
1 parent a7b12f4bb6
commit 0838cedd29
17 files changed
+992 -252

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ declare const process: {
BASE_API: string;
};
};
// TODO REPLACE THIS
export async function uploadMediaFile({
blob,
fileName,
+2 -1
View File
@@ -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`,