Giter Site home page Giter Site logo

jagaryousef / chatvoiceplayer Goto Github PK

View Code? Open in Web Editor NEW
182.0 182.0 26.0 175 KB

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

License: MIT License

Java 100.00%
android audioplayer chat component java library mediaplayer ui view waveform

chatvoiceplayer's People

Contributors

jagaryousef avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

chatvoiceplayer's Issues

Progress bar stopped showing

I have implemented the ChatVoicePlayer successfully. At first I could see the progress bar, then I couldn't. I didn't make changes to the XML. Any idea what could be causing this?

To add, it still works, I can move it up and down, and I can also see the click animation on it.

ChatVoicePlayer requires this function

ChatVoicePlayer lacks an important functionality of limiting the record time.

  • A new function should be created which allows to provide the record time limit until which to record and then automatically calls the onFinish function of onRecordListener.

ChatVoicePlayer lacks an important functionality

ChatVoicePlayer lacks an important functionality of limiting the record time.
A new function should be created which allows to provide the record time limit until which to record and then automatically calls the onFinish function of onRecordListener.

Improving the time counter

I would like a more concise timer.
00: 00: 00/00: 00: 00 - very long and not very beautiful.

For example, it would be prettier like this:

  1. default state - "00:17" (audio length 17 seconds)
  2. press the button "Play"
  3. the playback countdown has begun and we see the following:
    "00:01"
    "00:02"
    "00:03"
    "00:04"
    and so on

// =========================================

Second point:
The time counter, it seems to me, will look better here (see the picture)
image

app:enableVisualizer="true" doesn't work.

Hello, I have an issue with Visualizer. When I set app:enableVisualizer="false" progress bar is shown up, but when I set app:showShareButton="true" the recordview is looking like this:
Capture

How can I solve this issue?

ChatVoicePlayer continuously calling custom method once play is pressed

I've integrated ChatVoicePlayer into a chat recycler view.

I have a method that checks the content in each recycler view item to be able to handle it in a specific way. However, any item that contains the ChatVoicePlayer calls this method continuously once play is pressed, and even after paused, or even the activity closed.

Is there anything under the hood of the ChatVoicePlayer that could be triggering this?

RecycleView is Lagging

Recylcerview is lagging as you put more and more ChatVoicePlayer objects in it. that is already reported, but still it is there. Thanks for the great stuff.

question about main thread issue

hi, i see you using stream in FileUtils

public static byte[] fileToBytes(File file) {
        int size = (int) file.length();
        byte[] bytes = new byte[size];
        try {
            BufferedInputStream buf = new BufferedInputStream(new FileInputStream(file));
            buf.read(bytes, 0, bytes.length);
            buf.close();
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return bytes;
    }

i want to ask if I using url from network, and my recyclerview have many voice, so did it block main thread and cause delay? Thanks

can't use setImgPauseClickListener and setImgPlayClickListener

i can't use it setImgPauseClickListener and setImgPlayClickListener when i click it not happing anything

   ```
 holder.voicePlayerView.setImgPauseClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Log.d(TAG, "onClick: pausiiiiiii");
            }
        });

        holder.voicePlayerView.setImgPlayClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Log.d(TAG, "onClick: playyyyyyed");

                Log.d(TAG, "onClick: message : "+mss.getMessage());
                
            }
        });
I want to play only 1 audio by one not all in the same time because now I can run all audio players in the same time that is not good I want to run audio 1 and the other audio player paused so I need these features so response me too fast thanks 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.