{"action":"created","issue":{"url":"https://api.github.com/repos/piemonte/PBJVision/issues/231","labels_url":"https://api.github.com/repos/piemonte/PBJVision/issues/231/labels{/name}","comments_url":"https://api.github.com/repos/piemonte/PBJVision/issues/231/comments","events_url":"https://api.github.com/repos/piemonte/PBJVision/issues/231/events","html_url":"https://github.com/piemonte/PBJVision/issues/231","id":63899402,"number":231,"title":"Switching camera modes causes UI flicker/glitch","user":{"login":"oligriffiths","id":1246671,"avatar_url":"https://avatars.githubusercontent.com/u/1246671?v=3","gravatar_id":"","url":"https://api.github.com/users/oligriffiths","html_url":"https://github.com/oligriffiths","followers_url":"https://api.github.com/users/oligriffiths/followers","following_url":"https://api.github.com/users/oligriffiths/following{/other_user}","gists_url":"https://api.github.com/users/oligriffiths/gists{/gist_id}","starred_url":"https://api.github.com/users/oligriffiths/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oligriffiths/subscriptions","organizations_url":"https://api.github.com/users/oligriffiths/orgs","repos_url":"https://api.github.com/users/oligriffiths/repos","events_url":"https://api.github.com/users/oligriffiths/events{/privacy}","received_events_url":"https://api.github.com/users/oligriffiths/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-24T04:15:25Z","updated_at":"2015-04-15T16:40:19Z","closed_at":null,"body":"Hey\r\n\r\nFirst off, great library.\r\n\r\nI've found a glitch when switching camera modes. When switching from photo mode to video mode, the preview appears to shrink to around half the size, then flick back to full size again in a split second. Is there any way to mitigate this? It's most noticeable on older hardware (4s) but still visible on iphone 6.\r\n\r\nYou can test this with the following code:\r\n\r\n```\r\n@interface ViewController () <PBJVisionDelegate>\r\n@property (nonatomic) PBJVision *camera;\r\n@end\r\n\r\n@implementation ViewController\r\n\r\n- (void)viewDidLoad {\r\n    [super viewDidLoad];\r\n    \r\n    self.camera = [PBJVision sharedInstance];\r\n    self.camera.cameraMode = PBJCameraModePhoto;\r\n    self.camera.cameraOrientation = PBJCameraOrientationPortrait;\r\n    self.camera.focusMode = PBJFocusModeContinuousAutoFocus;\r\n    self.camera.captureSessionPreset = AVCaptureSessionPresetMedium;\r\n    self.camera.previewLayer.frame = self.view.bounds;\r\n    [self.view.layer addSublayer:self.camera.previewLayer];\r\n    \r\n    [self.camera startPreview];\r\n    \r\n    [self performSelector:@selector(swapModes) withObject:nil afterDelay:3.f];\r\n}\r\n\r\n-(void)swapModes{\r\n    self.camera.cameraMode = PBJCameraModeVideo;\r\n}\r\n\r\n@end\r\n```"},"comment":{"url":"https://api.github.com/repos/piemonte/PBJVision/issues/comments/93480879","html_url":"https://github.com/piemonte/PBJVision/issues/231#issuecomment-93480879","issue_url":"https://api.github.com/repos/piemonte/PBJVision/issues/231","id":93480879,"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":"2015-04-15T16:40:19Z","updated_at":"2015-04-15T16:40:19Z","body":"thanks @oligriffiths @markst will check it out"}}