title: How to set mimetype of audio file, so that it work on both android and ios?
body: <p>I'm currently recording audio with the following code:</p>
  
  <pre><code>recorder = new MediaRecorder();
  recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
  recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
  recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
  audio_path = getFilename();
  recorder.setOutputFile(audio_path);
  recorder.prepare();
  recorder.start();
  </code></pre>
  
  <p>It is working, and I can record an audio with the <code>mime type</code> <strong>audio/mpeg</strong>. But when I send this audio file to server or to an IOS device then they are not able to play this audio. It is working on other android devices. On FireFox it shows error message that <code>No video with supported format or mime type found</code> and on chrome it does also not work. 
  I tried to change the mime type with following code, which I found on
  <a href="https://stackoverflow.com/a/32609520/6526818">This Link</a>:</p>
  
  <pre><code>mRecorder.stop();
  mRecorder.release();
  String[] paths = {mFileName};
  String[] mimeTypes = {"audio/mp3"};
  MediaScannerConnection.scanFile(getApplicationContext(),
                                  paths,
                                  mimeTypes,
                                  new MediaScannerConnection.OnScanCompletedListener() {
                                      @Override
                                      public void onScanCompleted(String path, Uri uri) {
                                          System.out.println("SCAN COMPLETED: " + path);
  
                                      }
                                  });
  </code></pre>
  
  <p>But it is also not changing the mime type of the audio file. How I can set  the <code>mime type</code> <strong>audio/mp3</strong>?</p>