{"action":"created","issue":{"url":"https://api.github.com/repos/NextLevel/NextLevel/issues/13","repository_url":"https://api.github.com/repos/NextLevel/NextLevel","labels_url":"https://api.github.com/repos/NextLevel/NextLevel/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/NextLevel/NextLevel/issues/13/comments","events_url":"https://api.github.com/repos/NextLevel/NextLevel/issues/13/events","html_url":"https://github.com/NextLevel/NextLevel/issues/13","id":186385177,"number":13,"title":"Still image capture doesn't work (previewPhotoSampleBuffer always nil)","user":{"login":"graemesi","id":8223803,"avatar_url":"https://avatars.githubusercontent.com/u/8223803?v=3","gravatar_id":"","url":"https://api.github.com/users/graemesi","html_url":"https://github.com/graemesi","followers_url":"https://api.github.com/users/graemesi/followers","following_url":"https://api.github.com/users/graemesi/following{/other_user}","gists_url":"https://api.github.com/users/graemesi/gists{/gist_id}","starred_url":"https://api.github.com/users/graemesi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graemesi/subscriptions","organizations_url":"https://api.github.com/users/graemesi/orgs","repos_url":"https://api.github.com/users/graemesi/repos","events_url":"https://api.github.com/users/graemesi/events{/privacy}","received_events_url":"https://api.github.com/users/graemesi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-31T20:12:03Z","updated_at":"2016-10-31T21:18:25Z","closed_at":null,"body":"I'm trying to use NextLevel to capture a still photo. I've set `NextLevel.sharedInstance.cameraMode = .photo` and I'm calling `NextLevel.sharedInstance.capturePhoto()`\r\n\r\nHowever, I noticed the `nextLevel(_:didProcessPhotoCaptureWith:photoConfiguration)` delegate method is never called. Looking at NextLevel.swift, I see that previewPhotoSampleBuffer is expected to to be non-nil.\r\n```\r\npublic func capture(_ captureOutput: AVCapturePhotoOutput, didFinishProcessingPhotoSampleBuffer photoSampleBuffer: CMSampleBuffer?, previewPhotoSampleBuffer: CMSampleBuffer?, resolvedSettings: AVCaptureResolvedPhotoSettings, bracketSettings: AVCaptureBracketedStillImageSettings?, error: Error?) {\r\n        if let sampleBuffer = photoSampleBuffer,\r\n            let previewBuffer = previewPhotoSampleBuffer {\r\n```\r\nIn my case previewPhotoSampleBuffer is always nil. Is there some configuration property that needs to be set to allow still photos to be taken? Thanks!\r\n"},"comment":{"url":"https://api.github.com/repos/NextLevel/NextLevel/issues/comments/257423563","html_url":"https://github.com/NextLevel/NextLevel/issues/13#issuecomment-257423563","issue_url":"https://api.github.com/repos/NextLevel/NextLevel/issues/13","id":257423563,"user":{"login":"piemonte","id":1870667,"avatar_url":"https://avatars.githubusercontent.com/u/1870667?v=3","gravatar_id":"","url":"https://api.github.com/users/piemonte","html_url":"https://github.com/piemonte","followers_url":"https://api.github.com/users/piemonte/followers","following_url":"https://api.github.com/users/piemonte/following{/other_user}","gists_url":"https://api.github.com/users/piemonte/gists{/gist_id}","starred_url":"https://api.github.com/users/piemonte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piemonte/subscriptions","organizations_url":"https://api.github.com/users/piemonte/orgs","repos_url":"https://api.github.com/users/piemonte/repos","events_url":"https://api.github.com/users/piemonte/events{/privacy}","received_events_url":"https://api.github.com/users/piemonte/received_events","type":"User","site_admin":false},"created_at":"2016-10-31T21:18:25Z","updated_at":"2016-10-31T21:18:25Z","body":"hey @graemesi , apologies, that's a mistake on my part. the preview parameter just provides a thumbnail image of the photo taken – if it has been configured properly, which looks like i didn't do.\r\n\r\nit should work if that check is removed or if a \"preview\" configuration is also added internally. i can look into it for you when i have a sec."}}
{"actor":{"display_login":"piemonte"}}