{"id":23700915,"url":"https://github.com/cergo123/chatvoiceplayer","last_synced_at":"2025-06-26T01:02:34.417Z","repository":{"id":144495949,"uuid":"183678716","full_name":"cergo123/ChatVoicePlayer","owner":"cergo123","description":"An Android library to make the implementation of voice/audio messages' playing easier","archived":false,"fork":false,"pushed_at":"2024-11-16T17:28:07.000Z","size":175,"stargazers_count":184,"open_issues_count":9,"forks_count":28,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-16T18:25:08.472Z","etag":null,"topics":["android","audioplayer","chat","component","java","library","mediaplayer","ui","view","waveform"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cergo123.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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,"publiccode":null,"codemeta":null},"funding":{"github":["JagarYousef"],"custom":"https://www.paypal.me/jagaryousef"}},"created_at":"2019-04-26T18:46:13.000Z","updated_at":"2024-11-16T17:28:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"b1918a0b-3238-4587-aaa1-caf2e9381776","html_url":"https://github.com/cergo123/ChatVoicePlayer","commit_stats":null,"previous_names":["cergo123/chatvoiceplayer"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cergo123%2FChatVoicePlayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cergo123%2FChatVoicePlayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cergo123%2FChatVoicePlayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cergo123%2FChatVoicePlayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cergo123","download_url":"https://codeload.github.com/cergo123/ChatVoicePlayer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231835722,"owners_count":18433735,"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","audioplayer","chat","component","java","library","mediaplayer","ui","view","waveform"],"created_at":"2024-12-30T09:19:43.892Z","updated_at":"2024-12-30T09:19:44.682Z","avatar_url":"https://github.com/cergo123.png","language":"Java","funding_links":["https://github.com/sponsors/JagarYousef","https://www.paypal.me/jagaryousef"],"categories":[],"sub_categories":[],"readme":"![AppVeyor](https://img.shields.io/appveyor/ci/JagarYousef/chatvoiceplayer) ![GitHub language count](https://img.shields.io/github/languages/count/JagarYousef/ChatVoicePlayer) ![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/jagaryousef/chatvoiceplayer) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/JagarYousef/ChatVoicePlayer) ![GitHub](https://img.shields.io/github/license/JagarYousef/ChatVoicePlayer)  ![JitPack](https://img.shields.io/jitpack/v/github/JagarYousef/ChatVoicePlayer) ![GitHub commit activity](https://img.shields.io/github/commit-activity/m/JagarYousef/ChatVoicePlayer) ![GitHub Release Date](https://img.shields.io/github/release-date/JagarYousef/ChatVoicePlayer)\u003cbr\u003e\u003cbr\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/41321155/56833705-e8f0c180-6877-11e9-88fb-36a3ee17f149.gif\"\u003e\u003cbr\u003e\u003cbr\u003e\n  \u003cimg width=\"300\" src=\"https://user-images.githubusercontent.com/41321155/64449466-a7570980-d0e8-11e9-8c45-02a53951763d.png\"\u003e\u003cbr\u003e\u003cbr\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/41321155/56834806-1b4fee00-687b-11e9-9694-e6ce3bc2a94d.png\"\u003e\n\u003c/p\u003e\n\n\n# ChatVoicePlayer\nAn Android library to make the implementation of voice/audio messages' playing easier\n\n# Why to use this library? \n- To avoid the unwanted errors of using MediaPlayer in Android\n- This is a ready-to-use component to use in playing the chat voice messages in chat applications or any other app\n- Easy to use WaveForm for the played sounds\n\n# Features\n- Extremely easy to use\n- Direct share of the audio file\n- Full control of customization (colors, visibilities, shapes) \n- The controls are availabe in XML and programmatically\n- WaveForm Seekbar\n\n\n\n# Installation\nStep 1. Add it in your root build.gradle at the end of repositories:\n\n\tallprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n\t}\nStep 2. Add the dependency\n\n\tdependencies {\n\t        implementation 'com.github.JagarYousef:ChatVoicePlayer:$LATEST'\n\t}\n\n# Usage\n1. Add the voice player view in your xml layout: \n```\n\u003cme.jagar.chatvoiceplayerlibrary.VoicePlayerView\n    android:id=\"@+id/voicePlayerView\"\n    android:layout_width=\"wrap_content\"\n    android:layout_height=\"wrap_content\"\n    app:enableVisualizer=\"true\"\n    app:visualizationPlayedColor=\"#ff7700\"\n    app:visualizationNotPlayedColor=\"#727171\"\n    app:playPauseBackgroundColor=\"#ff7700\"\n    app:timingBackgroundColor=\"#6AFF7700\"\n    app:seekBarProgressColor=\"#000\"\n    app:showShareButton=\"true\"\n    app:shareCornerRadius=\"100\"\n    app:playPauseCornerRadius=\"100\"\n    app:showTiming=\"true\"\n    app:viewCornerRadius=\"100\"\n    app:viewBackground=\"#C6C4CF\"\n    app:progressTimeColor=\"#000\"\n    app:seekBarThumbColor=\"#FFC107\"\n    app:shareBackgroundColor=\"#ff7700\"\n    app:playProgressbarColor=\"#ff7700\"\n    app:shareText=\"SHARE ME\"/\u003e\n```\n2. Now prepare your player view wherever you want in your activity: \n```\nvoicePlayerView.setAudio(AUDIO_FILE_PATH);\n```\n\n* **NOTE:** Make sure to allow READ \u0026 WRITE external storage permessions\n\n# Supported functions\n\n`onStop()` //This will avoid many errors if you called it on your activity onStrop() \u003cbr\u003e\n`onPause()` //If you don't want to play the voice out of your activity/app! \u003cbr\u003e\n`setViewBackgroundShape(int color, float radius)` //color should be R.color.YOUR_COLOR \u003cbr\u003e\n`setShareBackgroundShape(int color, float radius)` //color should be R.color.YOUR_COLOR \u003cbr\u003e\n`setPlayPaueseBackgroundShape(int color, float radius)` //color should be R.color.YOUR_COLOR \u003cbr\u003e\n`setSeekBarStyle(int progressColor, int thumbColor)` //both colors should be R.color.YOUR_COLOR \u003cbr\u003e\n`setTimingVisibility(boolean visibility)` \u003cbr\u003e\n`setShareButtonVisibility(boolean visibility)` \u003cbr\u003e\n`setShareText(String shareText)`\u003cbr\u003e\n`showPlayProgressbar()`\u003cbr\u003e\n`hidePlayProgressbar()`\u003cbr\u003e\n`refreshPlayer(String audioPath)`\u003cbr\u003e\n\n# License \n```\nMIT License\n\nCopyright (c) 2019 Cergo123\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcergo123%2Fchatvoiceplayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcergo123%2Fchatvoiceplayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcergo123%2Fchatvoiceplayer/lists"}