@@ -30,10 +30,7 @@ use crate::{
30
30
general_settings:: { GeneralSettingsStore , PostDeletionBehaviour , PostStudioRecordingBehaviour } ,
31
31
open_external_link,
32
32
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} ,
37
34
web_api:: ManagerExt ,
38
35
windows:: { CapWindowId , ShowCapWindow } ,
39
36
} ;
@@ -782,26 +779,27 @@ async fn handle_recording_finish(
782
779
let _ = screenshot_task. await ;
783
780
784
781
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 ! ( ) ;
805
803
} else {
806
804
if let Ok ( meta) = build_video_meta ( & output_path)
807
805
. map_err ( |err| error ! ( "Error getting video metdata: {}" , err) )
0 commit comments