add export timelapse
This commit is contained in:
@@ -646,6 +646,28 @@ void App::dialog_ppbr_export()
|
||||
};
|
||||
}
|
||||
|
||||
void App::dialog_timelapse_export()
|
||||
{
|
||||
#if __IOS__ || __WEB__
|
||||
pick_file_save("mp4",
|
||||
[this](std::string path) {
|
||||
rec_export(path);
|
||||
},
|
||||
[this](bool saved) {
|
||||
message_box("Export Timelapse", "Timelapse exported succesfully.");
|
||||
}
|
||||
);
|
||||
#else
|
||||
pick_file_save({ "mp4" }, [this](std::string path) {
|
||||
std::thread([this, path] {
|
||||
BT_SetTerminate();
|
||||
rec_export(path);
|
||||
message_box("Export Timelapse", "Timelapse exported to: " + path);
|
||||
}).detach();
|
||||
});
|
||||
#endif
|
||||
}
|
||||
|
||||
void App::dialog_export_mp4()
|
||||
{
|
||||
std::thread([this] {
|
||||
|
||||
Reference in New Issue
Block a user