{"action":"closed","issue":{"url":"https://api.github.com/repos/jgh-/VideoCore/issues/94","labels_url":"https://api.github.com/repos/jgh-/VideoCore/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/jgh-/VideoCore/issues/94/comments","events_url":"https://api.github.com/repos/jgh-/VideoCore/issues/94/events","html_url":"https://github.com/jgh-/VideoCore/issues/94","id":53195528,"number":94,"title":"Cannot change Camera State on iPhone 4s","user":{"login":"JALsnipe","id":4513736,"avatar_url":"https://avatars.githubusercontent.com/u/4513736?v=3","gravatar_id":"","url":"https://api.github.com/users/JALsnipe","html_url":"https://github.com/JALsnipe","followers_url":"https://api.github.com/users/JALsnipe/followers","following_url":"https://api.github.com/users/JALsnipe/following{/other_user}","gists_url":"https://api.github.com/users/JALsnipe/gists{/gist_id}","starred_url":"https://api.github.com/users/JALsnipe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JALsnipe/subscriptions","organizations_url":"https://api.github.com/users/JALsnipe/orgs","repos_url":"https://api.github.com/users/JALsnipe/repos","events_url":"https://api.github.com/users/JALsnipe/events{/privacy}","received_events_url":"https://api.github.com/users/JALsnipe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-12-31T18:00:40Z","updated_at":"2015-09-26T17:53:42Z","closed_at":"2015-09-26T17:53:41Z","body":"I cannot use the init method with `cameraState` or change the `camreaState` value at all on a 4s device.\r\n\r\nWays to reproduce:\r\n1.\r\n```\r\n- (void)viewDidLoad {\r\n    [super viewDidLoad];\r\n    _session = [[VCSimpleSession alloc] initWithVideoSize:CGSizeMake(480, 480) frameRate:30 bitrate:1000000 useInterfaceOrientation:YES cameraState:VCCameraStateFront];\r\n    _session.previewView.frame = self.previewView.bounds;\r\n    _session.delegate = self;\r\n}\r\n```\r\nPreview view shows black screen, nothing else.\r\n\r\n2.\r\n```\r\n- (void)viewDidLoad {\r\n    [super viewDidLoad];\r\n    _session = [[VCSimpleSession alloc] initWithVideoSize:CGSizeMake(480, 480) frameRate:30 bitrate:1000000 useInterfaceOrientation:YES];\r\n    \r\n    [self.previewView addSubview:_session.previewView];\r\n    _session.previewView.frame = self.previewView.bounds;\r\n    _session.delegate = self;\r\n}\r\n\r\n// ...\r\n\r\n- (IBAction)changeCamera:(id)sender\r\n{\r\n    switch (_session.cameraState) {\r\n        case VCCameraStateFront:\r\n            _session.cameraState = VCCameraStateBack;\r\n            break;\r\n            \r\n        case VCCameraStateBack:\r\n            _session.cameraState = VCCameraStateFront;\r\n            break;\r\n            \r\n        default:\r\n            break;\r\n    }\r\n}\r\n```\r\nSession starts fine using the front facing camera.  When I try to switch the camera using the `changeCamera` method above, the UI freezes.\r\n\r\nDevice info:\r\niPhone 4s 16gb model running 8.1.2 (12B440)\r\n\r\nLet me know if you need any more information.\r\n\r\nThanks."}}