All Projects → JagarYousef → ChatVoicePlayer

JagarYousef / ChatVoicePlayer

Licence: MIT license
An Android library to make the implementation of voice/audio messages' playing easier

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to ChatVoicePlayer

Audiowave Progressbar
Lightweight audiowave progressbar for Android
Stars: ✭ 380 (+142.04%)
Mutual labels:  view, waveform
Exomedia
An Android ExoPlayer wrapper to simplify Audio and Video implementations
Stars: ✭ 1,939 (+1135.03%)
Mutual labels:  mediaplayer, audioplayer
HAudioPlayer
AVPlayer再封装,实现类网易云音乐播放动画效果
Stars: ✭ 15 (-90.45%)
Mutual labels:  mediaplayer, audioplayer
Viwaveformview
Generate waveform view from audio data.
Stars: ✭ 76 (-51.59%)
Mutual labels:  view, waveform
LuckPan
幸运转盘,可以控制选中指定的奖项。
Stars: ✭ 15 (-90.45%)
Mutual labels:  view
PulseInstrument
脉象仪 波形实时绘制 Demo
Stars: ✭ 30 (-80.89%)
Mutual labels:  view
waveform-data-generator
waveform data (peaks) generator (nodejs / ffmpeg)
Stars: ✭ 34 (-78.34%)
Mutual labels:  waveform
SwiftyExcelView
A View Look Like Excel & Form
Stars: ✭ 45 (-71.34%)
Mutual labels:  view
Maple
Maple is a windows desktop application designed to support semi and non professional streamers in playing back local audio files and streaming content from the internet to their favorite playback device
Stars: ✭ 37 (-76.43%)
Mutual labels:  mediaplayer
Coroutines-Animations
Use the power of kotlin coroutines to execute your android animations
Stars: ✭ 31 (-80.25%)
Mutual labels:  view
LockerScreen
Android lock screen,slide to unlock ! 安卓锁屏,上滑解锁,效果酷炫,值得拥有!
Stars: ✭ 81 (-48.41%)
Mutual labels:  view
PlayView
一个仿有道词典播放音乐的控件
Stars: ✭ 13 (-91.72%)
Mutual labels:  view
MusicPlayer
Android music player example.
Stars: ✭ 20 (-87.26%)
Mutual labels:  mediaplayer
material-chip-view
Material Chip view. Can be used as tags for categories, contacts or creating text clouds
Stars: ✭ 1,300 (+728.03%)
Mutual labels:  view
google streetview
A command line tool and module for Google Street View Image API
Stars: ✭ 77 (-50.96%)
Mutual labels:  view
SoundCloudWaveformSwift
How to create a soundcloud like waveform in swift
Stars: ✭ 89 (-43.31%)
Mutual labels:  waveform
TabBar
📱 TabBar – highly customizable tab bar for your SwiftUI application.
Stars: ✭ 105 (-33.12%)
Mutual labels:  view
RMGradientView
A Custom Gradient View Control for iOS with inspectable properties.
Stars: ✭ 24 (-84.71%)
Mutual labels:  view
CheckableTextView
A simple and flexible Checked TextView or Checkable TextView
Stars: ✭ 108 (-31.21%)
Mutual labels:  view
AndroidAnimationView
🚌🚌🚌android 动画、自定义控件,学习记录demo
Stars: ✭ 30 (-80.89%)
Mutual labels:  view

AppVeyor GitHub language count CodeFactor Grade GitHub code size in bytes GitHub JitPack GitHub commit activity GitHub Release Date





ChatVoicePlayer

An Android library to make the implementation of voice/audio messages' playing easier

Why to use this library?

  • To avoid the unwanted errors of using MediaPlayer in Android
  • This is a ready-to-use component to use in playing the chat voice messages in chat applications or any other app
  • Easy to use WaveForm for the played sounds

Features

  • Extremely easy to use
  • Direct share of the audio file
  • Full control of customization (colors, visibilities, shapes)
  • The controls are availabe in XML and programmatically
  • WaveForm Seekbar

Installation

Step 1. Add it in your root build.gradle at the end of repositories:

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

Step 2. Add the dependency

dependencies {
        implementation 'com.github.JagarYousef:ChatVoicePlayer:$LATEST'
}

Usage

  1. Add the voice player view in your xml layout:
<me.jagar.chatvoiceplayerlibrary.VoicePlayerView
    android:id="@+id/voicePlayerView"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:enableVisualizer="true"
    app:visualizationPlayedColor="#ff7700"
    app:visualizationNotPlayedColor="#727171"
    app:playPauseBackgroundColor="#ff7700"
    app:timingBackgroundColor="#6AFF7700"
    app:seekBarProgressColor="#000"
    app:showShareButton="true"
    app:shareCornerRadius="100"
    app:playPauseCornerRadius="100"
    app:showTiming="true"
    app:viewCornerRadius="100"
    app:viewBackground="#C6C4CF"
    app:progressTimeColor="#000"
    app:seekBarThumbColor="#FFC107"
    app:shareBackgroundColor="#ff7700"
    app:playProgressbarColor="#ff7700"
    app:shareText="SHARE ME"/>
  1. Now prepare your player view wherever you want in your activity:
voicePlayerView.setAudio(AUDIO_FILE_PATH);
  • NOTE: Make sure to allow READ & WRITE external storage permessions

Supported functions

onStop() //This will avoid many errors if you called it on your activity onStrop()
onPause() //If you don't want to play the voice out of your activity/app!
setViewBackgroundShape(int color, float radius) //color should be R.color.YOUR_COLOR
setShareBackgroundShape(int color, float radius) //color should be R.color.YOUR_COLOR
setPlayPaueseBackgroundShape(int color, float radius) //color should be R.color.YOUR_COLOR
setSeekBarStyle(int progressColor, int thumbColor) //both colors should be R.color.YOUR_COLOR
setTimingVisibility(boolean visibility)
setShareButtonVisibility(boolean visibility)
setShareText(String shareText)
showPlayProgressbar()
hidePlayProgressbar()
refreshPlayer(String audioPath)

License

MIT License

Copyright (c) 2019 Jagar Yousef

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].