Add object detection, tracking, mobile notifications, and search to any security camera.
hack for autoplay
roryclear66a8ad77da41
diff --git a/clearcam/ViewController.m b/clearcam/ViewController.mindex 025ca17..4d8d73c 100644--- a/clearcam/ViewController.m+++ b/clearcam/ViewController.m@@ -41,8 +41,6 @@ NSMutableDictionary *classColorMap;self.ciContext = [CIContext context];self.yolo = [[Yolo alloc] init];self.seg_number = 0;- [self setupCamera];- [self setupFPSLabel];self.fileServer = [[FileServer alloc] init];[self.fileServer start];self.fileServer.segmentsArray = [[NSMutableArray alloc] init];@@ -54,6 +52,8 @@ NSMutableDictionary *classColorMap;[[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];[self handleDeviceOrientationChange];+ [self setupCamera];+ [self setupFPSLabel];}- (void)dealloc {diff --git a/clearcam/player.html b/clearcam/player.htmlindex ce5b8f2..76045f1 100644--- a/clearcam/player.html+++ b/clearcam/player.html@@ -168,7 +168,8 @@if (totalDuration !== oldTotalDuration) {updateTimeline();preloadNextSegments();- if (!isPlaying && segments.length > 0 && !isWaitingForNextSegment) {+ //todo, bad autoplay at the start logic+ if (currentVideo.currentTime + segments[currentSegment].cumulativeStart == 0 || (isPlaying && isWaitingForNextSegment && segments.length < currentSegment + 1)) {playSegment();}if (isWaitingForNextSegment && segments.length > currentSegment + 1) {