Skip to content

Commit 8a1d081

Browse files
wip
1 parent a0d7028 commit 8a1d081

File tree

4 files changed

+175
-190
lines changed

4 files changed

+175
-190
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/desktop/src-tauri/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ bytemuck = "1.23.1"
104104
kameo = "0.17.2"
105105
tauri-plugin-sentry = "0.5.0"
106106
thiserror.workspace = true
107+
bytes = "1.10.1"
107108

108109
[target.'cfg(target_os = "macos")'.dependencies]
109110
core-graphics = "0.24.0"

apps/desktop/src-tauri/src/recording.rs

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ use crate::{
3030
general_settings::{GeneralSettingsStore, PostDeletionBehaviour, PostStudioRecordingBehaviour},
3131
open_external_link,
3232
presets::PresetsStore,
33-
upload::{
34-
InstantMultipartUpload, build_video_meta, create_or_get_video, prepare_screenshot_upload,
35-
upload_video,
36-
},
33+
upload::{InstantMultipartUpload, build_video_meta, create_or_get_video, upload_video},
3734
web_api::ManagerExt,
3835
windows::{CapWindowId, ShowCapWindow},
3936
};
@@ -782,26 +779,27 @@ async fn handle_recording_finish(
782779
let _ = screenshot_task.await;
783780

784781
if video_upload_succeeded {
785-
let resp = prepare_screenshot_upload(
786-
&app,
787-
&video_upload_info.config.clone(),
788-
display_screenshot,
789-
)
790-
.await;
791-
792-
match resp {
793-
Ok(r)
794-
if r.status().as_u16() >= 200 && r.status().as_u16() < 300 =>
795-
{
796-
info!("Screenshot uploaded successfully");
797-
}
798-
Ok(r) => {
799-
error!("Failed to upload screenshot: {}", r.status());
800-
}
801-
Err(e) => {
802-
error!("Failed to upload screenshot: {e}");
803-
}
804-
}
782+
// let resp = prepare_screenshot_upload(
783+
// &app,
784+
// &video_upload_info.config.clone(),
785+
// display_screenshot,
786+
// )
787+
// .await;
788+
789+
// match resp {
790+
// Ok(r)
791+
// if r.status().as_u16() >= 200 && r.status().as_u16() < 300 =>
792+
// {
793+
// info!("Screenshot uploaded successfully");
794+
// }
795+
// Ok(r) => {
796+
// error!("Failed to upload screenshot: {}", r.status());
797+
// }
798+
// Err(e) => {
799+
// error!("Failed to upload screenshot: {e}");
800+
// }
801+
// }
802+
todo!();
805803
} else {
806804
if let Ok(meta) = build_video_meta(&output_path)
807805
.map_err(|err| error!("Error getting video metdata: {}", err))

0 commit comments

Comments
 (0)