diff --git a/Objective-C/AdvancedExample/app/VideoViewController.m b/Objective-C/AdvancedExample/app/VideoViewController.m index 0153927..b141319 100644 --- a/Objective-C/AdvancedExample/app/VideoViewController.m +++ b/Objective-C/AdvancedExample/app/VideoViewController.m @@ -124,7 +124,7 @@ - (void)viewWillDisappear:(BOOL)animated { // Ignore this if we're presenting a modal view (e.g. in-app clickthrough). if ([self.navigationController.viewControllers indexOfObject:self] == NSNotFound) { // Don't save bookmark if we're playing a live stream. - if (self.video.streamType == StreamTypeLive) { + if (self.video.streamType != StreamTypeLive) { NSTimeInterval contentTime = [self.streamManager contentTimeForStreamTime:CMTimeGetSeconds(self.contentPlayer.currentTime)]; [self.delegate videoViewController:self didReportSavedTime:contentTime forVideo:self.video];