Comments (13)
I'm getting this error too.
from continuous-audiorecorder.
Anyone have a fix for this yet?
from continuous-audiorecorder.
@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.
@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.
from continuous-audiorecorder.
Unfortunately, I don't have any Samsung device. I'd suggest to try different output configurations.
from continuous-audiorecorder.
from continuous-audiorecorder.
from continuous-audiorecorder.
@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.
from continuous-audiorecorder.
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.
Me too getting this error. any fix?
from continuous-audiorecorder.
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)
- if directory of recording exists but not the file or the file exists but its length == 0 the recorder silently fails HOT 1
- Get amplitude or frequency spectrum HOT 1
- APK on drone.io does not play back recording HOT 2
- Destination file required to be created prior to using AudioRecorder HOT 4
- Start Failed Only When Using VORBIS Encoding
- Error when click quickly to record and pause HOT 1
- As a user, I would like to access the getMaxAmplitude() function of the mediaRecorder HOT 5
- 你这使用的也不是audiorecorder啊 HOT 1
- The filename suffix is MP3, but in fact his encoding is AAc HOT 1
- Not compatible with iOS devices HOT 1
- how to save recorded audio file in sdcard? HOT 1
- Error : Start Failed HOT 5
- Stop failed when click quickly to record and pause HOT 3
- When we call pause, the recording is cut about 0.7 secondes before the time that we paused. HOT 1
- Location of the recording file? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from continuous-audiorecorder.