Lg 3g saving audio file as video (android 5.1) -


trying save audio file in lg g3 running android 5.1 results in saving video file instead of audio file. appreciate if can solve issue me.

 private void startrecording() {     mrecorder = new mediarecorder();     mrecorder.setaudiosource(mediarecorder.audiosource.mic);     mrecorder.setoutputformat(mediarecorder.outputformat.three_gpp);     mrecorder.setoutputfile(audiofilepath);     mrecorder.setaudioencoder(mediarecorder.audioencoder.amr_nb);      try {         mrecorder.prepare();     } catch (ioexception e) {         log.e("record", "prepare() failed");     }      mrecorder.start(); } 

you can visit links problem, link1or link2.

and if want audio in actual mp3 codec need use 3rd party lib link3.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -