This commit is contained in:
Michael Chung committed 2024-03-29 23:10:36 -04:00
1 parent b0c1d498a0
commit d17cc96cd9
2 files changed
+34 -30

No files matched your search

@@ -22,24 +22,26 @@ export const ControlsTopButtons = () => {
};
const handleButtonTest = () => {
if(appUiState?.showEditorLoadingBar.isShowing){
//TO GO TO A HUNDRED AND DISAPPER
dispatchAppUiState({
type: APPUI_ACTION_TYPES.UPDATE_EDITOR_LOADINGBAR,
payload:{
showEditorLoadingBar: {
progress: 100,
}
}
});
setTimeout(() => {
dispatchAppUiState({
type: APPUI_ACTION_TYPES.HIDE_EDITOR_LOADINGBAR,
});
}, 1000);
//END :TO GO TO A HUNDRED AND DISAPPER
editorEngine?.testStylizeRequest()
// if(appUiState?.showEditorLoadingBar.isShowing){
//TO GO TO A HUNDRED AND DISAPPER
// dispatchAppUiState({
// type: APPUI_ACTION_TYPES.UPDATE_EDITOR_LOADINGBAR,
// payload:{
// showEditorLoadingBar: {
// progress: 100,
// }
// }
// });
// setTimeout(() => {
// dispatchAppUiState({
// type: APPUI_ACTION_TYPES.HIDE_EDITOR_LOADINGBAR,
// });
// }, 1000);
//END :TO GO TO A HUNDRED AND DISAPPER
//EAMPLE OF CHANING LOADING MESSAGE
//EAMPLE OF CHANING LOADING MESSAGE
// dispatchAppUiState({
// type: APPUI_ACTION_TYPES.UPDATE_EDITOR_LOADINGBAR,
// payload:{
@@ -48,18 +50,18 @@ export const ControlsTopButtons = () => {
// }
// }
// });
}else{
dispatchAppUiState({
type: APPUI_ACTION_TYPES.SHOW_EDITOR_LOADINGBAR,
payload:{
showEditorLoadingBar: {
message: 'display of LoadingBar triggered by Test Button',
progress: 10,
}
}
// }else{
// dispatchAppUiState({
// type: APPUI_ACTION_TYPES.SHOW_EDITOR_LOADINGBAR,
// payload:{
// showEditorLoadingBar: {
// message: 'display of LoadingBar triggered by Test Button',
// progress: 10,
// }
// }
});
}
// });
//}
};
const handleObjectPanelTest = () => {
@@ -97,7 +99,9 @@ export const ControlsTopButtons = () => {
editorEngine?.take_timeline_cam_clip();
};
const handleButtonLoad = () => {};
const handleButtonLoad = () => {
console.log("LOADING");
};
return (
<div className="flex flex-col gap-2 pl-3 pt-3">
+1 -1
View File
@@ -376,7 +376,7 @@ export class APIManager {
enable_lipsync: true,
creator_set_visibility: visibility
}
console.log(JSON.stringify(data))
const response = await fetch(`${this.baseUrl}/v1/video/enqueue_vst`, {
method: "POST",
credentials: "include",