The mime type for audio output is set as video

I wrote a simple recording program. I set the output format to THREE_GP, but the resulting mime file type is set to video (when I try to view the file data).

Any idea why?

mRecorder = new MediaRecorder(); mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC); mRecorder.setOutputFile(recordingFilePath); 
+6
source share

Source: https://habr.com/ru/post/926043/


All Articles