Closed nageshnayak closed 2 years ago
setOutputFile() method creates a blank FileName.wav
(without headers) file, but MediaPlayer cannot play blank files and returns IOException.
Can't we handle the exception rather than crashing?
Yes, we can. I'll add a toast message saying "Can't play this file"
Check needed in MediaRecorder build as well
Mediarecorder also has the check, can you give reproducible steps?
Reproducible steps: Press Initialize Press Set Path Press Prepare Press Play Recording App crashes
Same sequence works fine for AudioRecord build
Reproducible steps: Press Initialize Press Set Path Press Play Recording App crashes
Need to check if same steps cause crash in media recorder