{"action":"created","issue":{"url":"https://api.github.com/repos/mit-cml/appinventor-sources/issues/363","labels_url":"https://api.github.com/repos/mit-cml/appinventor-sources/issues/363/labels{/name}","comments_url":"https://api.github.com/repos/mit-cml/appinventor-sources/issues/363/comments","events_url":"https://api.github.com/repos/mit-cml/appinventor-sources/issues/363/events","html_url":"https://github.com/mit-cml/appinventor-sources/issues/363","id":69265971,"number":363,"title":"Canvas Camera Live Feed","user":{"login":"thequixotic","id":4526473,"avatar_url":"https://avatars.githubusercontent.com/u/4526473?v=3","gravatar_id":"","url":"https://api.github.com/users/thequixotic","html_url":"https://github.com/thequixotic","followers_url":"https://api.github.com/users/thequixotic/followers","following_url":"https://api.github.com/users/thequixotic/following{/other_user}","gists_url":"https://api.github.com/users/thequixotic/gists{/gist_id}","starred_url":"https://api.github.com/users/thequixotic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thequixotic/subscriptions","organizations_url":"https://api.github.com/users/thequixotic/orgs","repos_url":"https://api.github.com/users/thequixotic/repos","events_url":"https://api.github.com/users/thequixotic/events{/privacy}","received_events_url":"https://api.github.com/users/thequixotic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-18T04:28:08Z","updated_at":"2015-04-18T12:04:24Z","closed_at":null,"body":"https://github.com/josmas/OurBricks_AppInventor/wiki/Live-Feed-Design\r\n\r\nChanged the Canvas Component. \r\nDid some mutation to CanvasView to make it surface view. \r\n\r\nDrawing order :\r\nCamera Feed (optional) // drawn only if CameraFeed is set to true\r\nBackground Color / Image\r\nCanvas Bitmap\r\nSprites (in order of their addition)\r\n\r\nMaybe suggestions on the new properties to be added.\r\nRight now .. \r\nCameraFeed boolean\r\nCameraUseFront boolean \r\n.. maybe Some camera properties also maybe like exposure, balance etc. found in Camera Parameters (http://developer.android.com/reference/android/hardware/Camera.Parameters.html)\r\n\r\n \r\n\r\nCame up with this. Test APK https://drive.google.com/file/d/0B6TjsdbpeaqcMXVFQVlDWk5XaGs/view?usp=sharing\r\nIs this what is expected from a live feed ?\r\n\r\n@josmas @jisqyv "},"comment":{"url":"https://api.github.com/repos/mit-cml/appinventor-sources/issues/comments/94161228","html_url":"https://github.com/mit-cml/appinventor-sources/issues/363#issuecomment-94161228","issue_url":"https://api.github.com/repos/mit-cml/appinventor-sources/issues/363","id":94161228,"user":{"login":"halatmit","id":789431,"avatar_url":"https://avatars.githubusercontent.com/u/789431?v=3","gravatar_id":"","url":"https://api.github.com/users/halatmit","html_url":"https://github.com/halatmit","followers_url":"https://api.github.com/users/halatmit/followers","following_url":"https://api.github.com/users/halatmit/following{/other_user}","gists_url":"https://api.github.com/users/halatmit/gists{/gist_id}","starred_url":"https://api.github.com/users/halatmit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halatmit/subscriptions","organizations_url":"https://api.github.com/users/halatmit/orgs","repos_url":"https://api.github.com/users/halatmit/repos","events_url":"https://api.github.com/users/halatmit/events{/privacy}","received_events_url":"https://api.github.com/users/halatmit/received_events","type":"User","site_admin":false},"created_at":"2015-04-18T12:04:24Z","updated_at":"2015-04-18T12:04:24Z","body":"I tried loading the apk and running it and it crashed with\r\n\r\nE/QCameraHWI_Parm( 1566): Invalid preview size requested: 320x300\r\nD/AndroidRuntime(30434): Shutting down VM\r\nE/AndroidRuntime(30434): FATAL EXCEPTION: main\r\nE/AndroidRuntime(30434): Process: appinventor.ai_admin.canvasCamera, PID: 30434\r\nE/AndroidRuntime(30434): java.lang.RuntimeException: setParameters failed\r\nE/AndroidRuntime(30434): \tat android.hardware.Camera.native_setParameters(Native Method)\r\n\r\nIn any case, when implementing this, remember that we need to support phones down to Gingerbread.\r\n\r\nAlso  Mark Sherman is thinking about the camera, and this might interact.\r\n@marksherman \r\n"}}