Skip to content

Add object detection, tracking, mobile notifications, and search to any security camera.

move preview forward a bit

rorycleard2e7906315a6
diff --git a/clearcam/GalleryViewController.m b/clearcam/GalleryViewController.m
index 4789c73..1422c0d 100644
--- a/clearcam/GalleryViewController.m
+++ b/clearcam/GalleryViewController.m
@@ -365,7 +365,7 @@
// Get the duration of the video
CMTime duration = asset.duration;
Float64 durationInSeconds = CMTimeGetSeconds(duration);
- Float64 middleTime = durationInSeconds / 2.0;
+ Float64 middleTime = durationInSeconds / 1.75; //little after
// Set the time to the middle of the video
CMTime time = CMTimeMakeWithSeconds(middleTime, 600);