add export timelapse

This commit is contained in:
2019-11-03 01:07:13 +01:00
parent cd128f215a
commit ee94e0ad86
7 changed files with 57 additions and 14 deletions

View File

@@ -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] {