Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Set segment start time based on segment index
Richie McIlroyef26a70f9ba6
diff --git a/crates/recording/src/studio_recording.rs b/crates/recording/src/studio_recording.rsindex db3c0f055..3ba794ed7 100644--- a/crates/recording/src/studio_recording.rs+++ b/crates/recording/src/studio_recording.rs@@ -837,6 +837,11 @@ impl SegmentPipelineFactory {cursors: Cursors,next_cursors_id: u32,) -> anyhow::Result<Pipeline> {+ let segment_start_time = if self.index == 0 {+ self.start_time+ } else {+ Timestamps::now()+ };let pipeline = create_segment_pipeline(&self.segments_dir,&self.cursors_dir,@@ -847,7 +852,7 @@ impl SegmentPipelineFactory {self.custom_cursor_capture,self.fragmented,self.max_fps,- self.start_time,+ segment_start_time,#[cfg(windows)]self.encoder_preferences.clone(),)