GithubHelp home page GithubHelp logo

Comments (13)

abhnerAraujo avatar abhnerAraujo commented on June 9, 2024

I'm getting this error too.

from continuous-audiorecorder.

kkl260 avatar kkl260 commented on June 9, 2024

Anyone have a fix for this yet?

from continuous-audiorecorder.

sachinvarma avatar sachinvarma commented on June 9, 2024

@lassana If you can able to provide a solution for this, it will be be very helpful, my whole app is made upon on this, now changing this will cost me a lot, app is crashing a lot only due to this. Mostly in Samsung devices.

Caused by java.lang.IllegalStateException
at android.media.MediaRecorder._start(MediaRecorder.java)
at android.media.MediaRecorder.start(MediaRecorder.java:1170)
at com.github.lassana.recorder.AudioRecorder$StartRecordTask.doInBackground(SourceFile:90)
at com.github.lassana.recorder.AudioRecorder$StartRecordTask.doInBackground(SourceFile:79)
at android.os.AsyncTask$2.call(AsyncTask.java:304)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:762)

from continuous-audiorecorder.

lassana avatar lassana commented on June 9, 2024

@sachinvarma I suppose you should use a different audio recording configuration to avoid this. It would be helpful if you provided steps to reproduce the crash.

from continuous-audiorecorder.

sachinvarma avatar sachinvarma commented on June 9, 2024

from continuous-audiorecorder.

lassana avatar lassana commented on June 9, 2024

Unfortunately, I don't have any Samsung device. I'd suggest to try different output configurations.

from continuous-audiorecorder.

sachinvarma avatar sachinvarma commented on June 9, 2024

from continuous-audiorecorder.

sachinvarma avatar sachinvarma commented on June 9, 2024

from continuous-audiorecorder.

netunlimited avatar netunlimited commented on June 9, 2024

@sachinvarma thanks for sharing, but could you explain a bit more please?

Did you change this line:
MediaRecorder.AudioSource.DEFAULT
into this:
MediaRecorder.AudioSource.MIC
and was that enough for you?
I've tried it but the crash is still occurring for Samsung devices.

Would you perhaps mind to share your output configuration such as bitrate, output format and encoder?
This crash is happening a lot in my app too, I'd love to fix it.

from continuous-audiorecorder.

sachinvarma avatar sachinvarma commented on June 9, 2024

from continuous-audiorecorder.

netunlimited avatar netunlimited commented on June 9, 2024

No i did more, @netunlimited Could you please try this, implementation "com.github.sachinvarma:continuous-audiorecorder:v1.3.3.3" and let me know whether it works for you or not.

@sachinvarma Thank you so much, I will launch an update and see if the crash is fixed for my users. I will let you know.

from continuous-audiorecorder.

qadirsuh avatar qadirsuh commented on June 9, 2024

Me too getting this error. any fix?

from continuous-audiorecorder.

qadirsuh avatar qadirsuh commented on June 9, 2024

No i did more, @netunlimited Could you please try this,
implementation "com.github.sachinvarma:continuous-audiorecorder:v1.3.3.3" and let me know whether it works for you or not.

@sachinvarma can you please tell me is it working still?

I have tried using different config combinations with no luck.

val mediaConfig = MediaRecorderConfig(
        64 * 1024,
        2,
        MediaRecorder.AudioSource.MIC,
        ApiHelper.DEFAULT_AUDIO_ENCODER
    )

mAudioRecorder = AudioRecorderBuilder.with(mApplication)
                .fileName(getNextFileName())
                .config(mediaConfig)
                .loggable()
                .build()

its getting crashed every time. :(

from continuous-audiorecorder.

Related Issues (16)

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.