{"id":17987490,"url":"https://github.com/iammert/cameravideobutton","last_synced_at":"2025-04-05T17:07:38.102Z","repository":{"id":94173059,"uuid":"176964687","full_name":"iammert/CameraVideoButton","owner":"iammert","description":"Instagram like animated button for taking photo or recording video.","archived":false,"fork":false,"pushed_at":"2020-05-18T09:03:50.000Z","size":2361,"stargazers_count":264,"open_issues_count":3,"forks_count":33,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T16:08:16.954Z","etag":null,"topics":["android","animation","button","camera","customview","kotlin","video"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iammert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-03-21T14:42:44.000Z","updated_at":"2025-01-20T14:17:16.000Z","dependencies_parsed_at":"2023-03-07T16:30:24.416Z","dependency_job_id":null,"html_url":"https://github.com/iammert/CameraVideoButton","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iammert%2FCameraVideoButton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iammert%2FCameraVideoButton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iammert%2FCameraVideoButton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iammert%2FCameraVideoButton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iammert","download_url":"https://codeload.github.com/iammert/CameraVideoButton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247369952,"owners_count":20927928,"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":["android","animation","button","camera","customview","kotlin","video"],"created_at":"2024-10-29T19:08:57.760Z","updated_at":"2025-04-05T17:07:38.070Z","avatar_url":"https://github.com/iammert.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CameraVideoButton\nInstagram like animated button for taking photo or recording video.\n\n\u003cimg src=\"https://raw.githubusercontent.com/iammert/CameraVideoButton/master/art/art.png\"/\u003e\n\n[Watch!](https://www.youtube.com/watch?v=4zmgleq5dCw)\n\n## Usage\n\nPS. This is just a dummy view. All recording or taking picture operation is up to you.\n\n```xml\n\u003ccom.iammert.library.cameravideobuttonlib.CameraVideoButton\n    android:id=\"@+id/button\"\n    android:layout_width=\"120dp\"\n    android:layout_height=\"120dp\"\n    app:cvb_recording_color=\"#D438A2\"/\u003e\n```\n\nCustomize it!\n\n```kotlin\nvideoRecordButton.setVideoDuration(10000)\nvideoRecordButton.enableVideoRecording(true)\nvideoRecordButton.enablePhotoTaking(true)\n```\n\nObserve!\n```kotlin\nvideoRecordButton.actionListener = object : CameraVideoButton.ActionListener{\n    override fun onStartRecord() {\n        Log.v(\"TEST\", \"Start recording video\")\n    }\n\n    override fun onEndRecord() {\n        Log.v(\"TEST\", \"Stop recording video\")\n    }\n\n    override fun onDurationTooShortError() {\n        Log.v(\"TEST\", \"Toast or notify user\")\n    }\n\n    override fun onSingleTap() {\n        Log.v(\"TEST\", \"Take photo here\")\n    }\n}\n```\n\n## Setup\n```gradle\nallprojects {\n    repositories {\n        ...\n        maven { url 'https://jitpack.io' }\n    }\n}\n\ndependencies {\n    implementation 'com.github.iammert:CameraVideoButton:0.2'\n}\n```\n\n### Used Apps\n\u003ca href=\"https://kunduz.com/\"\u003e\u003cimg src=\"https://kunduz.com/wp-content/uploads/2018/12/icon-512x512.png\" width=\"72\" height=\"72\"/\u003e\u003c/a\u003e\n\nLicense\n--------\n\n\n    Copyright 2019 Mert Şimşek\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiammert%2Fcameravideobutton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiammert%2Fcameravideobutton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiammert%2Fcameravideobutton/lists"}