{"action":"created","issue":{"url":"https://api.github.com/repos/mbppower/CordovaCameraPreview/issues/43","labels_url":"https://api.github.com/repos/mbppower/CordovaCameraPreview/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/mbppower/CordovaCameraPreview/issues/43/comments","events_url":"https://api.github.com/repos/mbppower/CordovaCameraPreview/issues/43/events","html_url":"https://github.com/mbppower/CordovaCameraPreview/issues/43","id":87576192,"number":43,"title":"Fullscreen stretched, fix on switch camera","user":{"login":"Ipno84","id":10461843,"avatar_url":"https://avatars.githubusercontent.com/u/10461843?v=3","gravatar_id":"","url":"https://api.github.com/users/Ipno84","html_url":"https://github.com/Ipno84","followers_url":"https://api.github.com/users/Ipno84/followers","following_url":"https://api.github.com/users/Ipno84/following{/other_user}","gists_url":"https://api.github.com/users/Ipno84/gists{/gist_id}","starred_url":"https://api.github.com/users/Ipno84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ipno84/subscriptions","organizations_url":"https://api.github.com/users/Ipno84/orgs","repos_url":"https://api.github.com/users/Ipno84/repos","events_url":"https://api.github.com/users/Ipno84/events{/privacy}","received_events_url":"https://api.github.com/users/Ipno84/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-12T02:16:16Z","updated_at":"2015-06-16T15:10:45Z","closed_at":null,"body":"I'm trying to start camera on device ready. Everything's ok but the preview resolution. The camera preview seems to be stretched. When I switch the camera from back to front (or from front to back) the resolution seems to be ok. How can I do to solve the problem? I tried to assign in js screen width and height to the startCamera method. Is there a way to fix this?"},"comment":{"url":"https://api.github.com/repos/mbppower/CordovaCameraPreview/issues/comments/112465174","html_url":"https://github.com/mbppower/CordovaCameraPreview/issues/43#issuecomment-112465174","issue_url":"https://api.github.com/repos/mbppower/CordovaCameraPreview/issues/43","id":112465174,"user":{"login":"Ipno84","id":10461843,"avatar_url":"https://avatars.githubusercontent.com/u/10461843?v=3","gravatar_id":"","url":"https://api.github.com/users/Ipno84","html_url":"https://github.com/Ipno84","followers_url":"https://api.github.com/users/Ipno84/followers","following_url":"https://api.github.com/users/Ipno84/following{/other_user}","gists_url":"https://api.github.com/users/Ipno84/gists{/gist_id}","starred_url":"https://api.github.com/users/Ipno84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ipno84/subscriptions","organizations_url":"https://api.github.com/users/Ipno84/orgs","repos_url":"https://api.github.com/users/Ipno84/repos","events_url":"https://api.github.com/users/Ipno84/events{/privacy}","received_events_url":"https://api.github.com/users/Ipno84/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T15:10:45Z","updated_at":"2015-06-16T15:10:45Z","body":"Hi mbppower, I use a Oneplus One and I launch the camera on device ready with sceen width and height. Unfortunately the aspect ratio seems stretched. Here's a screenshot\r\n![screenshot_2015-06-15-19-12-41](https://cloud.githubusercontent.com/assets/10461843/8186419/7db218fe-144a-11e5-8294-d1e58338e98f.png)\r\n"}}