{"id":20969880,"url":"https://github.com/ourcodeworld/cordova-ourcodeworld-materialcamera","last_synced_at":"2025-06-29T11:37:29.641Z","repository":{"id":201969002,"uuid":"80614434","full_name":"ourcodeworld/cordova-ourcodeworld-materialcamera","owner":"ourcodeworld","description":"A cordova wrapper for the Android Library Material Camera.","archived":false,"fork":false,"pushed_at":"2017-10-16T05:46:33.000Z","size":13,"stargazers_count":2,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T08:15:01.077Z","etag":null,"topics":["camera","camera-api","cordova-android-plugin","material-design","video","video-recording"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ourcodeworld.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-02-01T11:36:38.000Z","updated_at":"2022-07-16T18:19:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"b7978627-903d-4ec8-af70-0087fe66e5b6","html_url":"https://github.com/ourcodeworld/cordova-ourcodeworld-materialcamera","commit_stats":null,"previous_names":["ourcodeworld/cordova-ourcodeworld-materialcamera"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ourcodeworld/cordova-ourcodeworld-materialcamera","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ourcodeworld%2Fcordova-ourcodeworld-materialcamera","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ourcodeworld%2Fcordova-ourcodeworld-materialcamera/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ourcodeworld%2Fcordova-ourcodeworld-materialcamera/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ourcodeworld%2Fcordova-ourcodeworld-materialcamera/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ourcodeworld","download_url":"https://codeload.github.com/ourcodeworld/cordova-ourcodeworld-materialcamera/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ourcodeworld%2Fcordova-ourcodeworld-materialcamera/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262588474,"owners_count":23333179,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["camera","camera-api","cordova-android-plugin","material-design","video","video-recording"],"created_at":"2024-11-19T03:53:23.923Z","updated_at":"2025-06-29T11:37:29.604Z","avatar_url":"https://github.com/ourcodeworld.png","language":"Java","readme":"# cordova-ourcodeworld-materialcamera\nA cordova wrapper for the [Android Library Material Camera](https://github.com/afollestad/material-camera).\n\n\u003cimg src=\"https://raw.githubusercontent.com/afollestad/material-camera/master/art/showcase1.png\" width=\"800px\" /\u003e\n\n# Installation\n\nAdd the plugin using the following command in a terminal:\n\n```bash\ncordova plugin add https://github.com/ourcodeworld/cordova-ourcodeworld-materialcamera.git\n```\n\nAfter the installation you will be able to use the `OurCodeWorld.MaterialCamera` object in the Window.\n\n\n# Documentation\n\n[Visit the official documentation of the plugin here](http://docs.ourcodeworld.com/projects/cordova-our-code-world-material-camera)\n\n# Examples\n\nThe videoRecorder and camera object contains a lot of options, [please read the docs](http://docs.ourcodeworld.com/projects/cordova-our-code-world-material-camera).\n\n## Take picture\n\n```javascript\nOurCodeWorld.MaterialCamera.camera\n    .qualityProfile(\"QUALITY_1080P\")\n    .setLanguage(\"de\")\n    .defaultToFrontFacing(true)\n    // Or save the output path:\n    //.saveDir(\"/storage/emulated/0/\")\n    .allowRetry(true)\n    .startCamera({\n        success: function(Data){\n            console.info(Data);\n            //{ mode:\"camera\"\n            //outputFile: \"file:///storage/emulated/0/Android/data/com.ourcodeworld.sandbox/cache/IMG_20170201_125644.jpg\"\n            //status: \"success\"}\n        },\n        error: function(err){\n            console.error(Data);\n        },\n        none: function(){\n            console.log(\"The user started the camera, but didn't do anything :) \");\n        }\n    });\n```\n\n## Video\n\n```javascript\nOurCodeWorld.MaterialCamera.videoRecorder\n    .setLanguage(\"en\")\n    .defaultToFrontFacing(true)\n    .allowRetry(true)\n    .autoRecordWithDelayMs(5000)\n    .countdownMillis(20000)\n    .startVideoRecorder({\n        success: function(Data){\n            console.info(Data);\n            //{ mode:\"video\"\n            //outputFile: \"file:///storage/emulated/0/Android/data/com.yourapp.appname/cache/VID_20170201_125241.mp4\"\n            //status: \"success\"}\n        },\n        error: function(err){\n            console.error(Data);\n        },\n        none: function(){\n            console.log(\"The user started the camera, but didn't do anything :) \");\n        }\n    });\n```\n\n---\n\n# [LICENSE](/LICENSE.md)\n\n###### Copyright 2016 Aidan Follestad\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fourcodeworld%2Fcordova-ourcodeworld-materialcamera","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fourcodeworld%2Fcordova-ourcodeworld-materialcamera","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fourcodeworld%2Fcordova-ourcodeworld-materialcamera/lists"}