{"action":"created","issue":{"url":"https://api.github.com/repos/Awalz/SwiftyCam/issues/31","repository_url":"https://api.github.com/repos/Awalz/SwiftyCam","labels_url":"https://api.github.com/repos/Awalz/SwiftyCam/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/Awalz/SwiftyCam/issues/31/comments","events_url":"https://api.github.com/repos/Awalz/SwiftyCam/issues/31/events","html_url":"https://github.com/Awalz/SwiftyCam/issues/31","id":216453215,"number":31,"title":"Unable to capture media","user":{"login":"david-koch-pro","id":16528614,"avatar_url":"https://avatars3.githubusercontent.com/u/16528614?v=3","gravatar_id":"","url":"https://api.github.com/users/david-koch-pro","html_url":"https://github.com/david-koch-pro","followers_url":"https://api.github.com/users/david-koch-pro/followers","following_url":"https://api.github.com/users/david-koch-pro/following{/other_user}","gists_url":"https://api.github.com/users/david-koch-pro/gists{/gist_id}","starred_url":"https://api.github.com/users/david-koch-pro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/david-koch-pro/subscriptions","organizations_url":"https://api.github.com/users/david-koch-pro/orgs","repos_url":"https://api.github.com/users/david-koch-pro/repos","events_url":"https://api.github.com/users/david-koch-pro/events{/privacy}","received_events_url":"https://api.github.com/users/david-koch-pro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-23T14:43:32Z","updated_at":"2017-03-23T15:20:48Z","closed_at":null,"body":"When push camera viewcontroller, I could see the following message.\r\n\r\nDomain=AVFoundationErrorDomain Code=-11814 \"Cannot Record\" UserInfo={NSLocalizedRecoverySuggestion=Try recording again., NSLocalizedDescription=Cannot Record}\r\n\r\nWhat should I fix?"},"comment":{"url":"https://api.github.com/repos/Awalz/SwiftyCam/issues/comments/288753807","html_url":"https://github.com/Awalz/SwiftyCam/issues/31#issuecomment-288753807","issue_url":"https://api.github.com/repos/Awalz/SwiftyCam/issues/31","id":288753807,"user":{"login":"david-koch-pro","id":16528614,"avatar_url":"https://avatars3.githubusercontent.com/u/16528614?v=3","gravatar_id":"","url":"https://api.github.com/users/david-koch-pro","html_url":"https://github.com/david-koch-pro","followers_url":"https://api.github.com/users/david-koch-pro/followers","following_url":"https://api.github.com/users/david-koch-pro/following{/other_user}","gists_url":"https://api.github.com/users/david-koch-pro/gists{/gist_id}","starred_url":"https://api.github.com/users/david-koch-pro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/david-koch-pro/subscriptions","organizations_url":"https://api.github.com/users/david-koch-pro/orgs","repos_url":"https://api.github.com/users/david-koch-pro/repos","events_url":"https://api.github.com/users/david-koch-pro/events{/privacy}","received_events_url":"https://api.github.com/users/david-koch-pro/received_events","type":"User","site_admin":false},"created_at":"2017-03-23T15:20:48Z","updated_at":"2017-03-23T15:20:48Z","body":"I've checked my source again and guessing this part has problem. (I modified if condition because original code is deprecated)\r\n\r\n```\r\nfileprivate class func deviceWithMediaType(_ mediaType: String, preferringPosition position: AVCaptureDevicePosition) -> AVCaptureDevice? {\r\n        if let devices = AVCaptureDeviceDiscoverySession(deviceTypes: [], mediaType: mediaType, position: position).devices {\r\n            return devices.filter({ $0.position == position }).first\r\n        }\r\n        return nil\r\n    }\r\n```"}}
{"actor":{"display_login":"david-koch-pro"}}