title: java.io.IOException: setDataSource failed when play recorded mp4
body: <p>I want to play recorded mp4  data using Android Media Player,but when try to play this error showed :</p>
  <blockquote>
  <p>java.io.IOException: setDataSource failed.</p>
  <p>at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1086)</p>
  <p>at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1032)</p>
  </blockquote>
  <p>This is my code :</p>
  <pre><code>final ImageView play = (ImageView) root.findViewById(R.id.voice_play);
          play.setOnClickListener(new OnClickListener() {
              @Override
              public void onClick(View v) {
                  try {
                      player = new MediaPlayer();
                      if (player.isPlaying()) {
                          player.reset();
                      }
                      player.setDataSource(&quot;file://mnt/sdcard/Android/data/com.myapp.apptalk/AudioRecorder/22-Oct-2015 11:26:14.mp4&quot;);
                      player.prepare();
  
                      seekbar.setMax(player.getDuration());
  
                      if (isPlay) {
                          player.stop();
                          play.setImageResource(R.drawable.play);
                          handler.removeCallbacks(runnable);
                          isPlay = false;
                      } else {
                          player.start();
  
                          runnable = new Runnable() {
                              @Override
                              public void run() {
                                  seekbar.setProgress(player.getCurrentPosition());
                                  handler.postDelayed(this, 1000);
                              }
                          };
                          handler = new Handler();
                          handler.post(runnable);
  
                          play.setImageResource(R.drawable.stop);
                          isPlay = true;
                      }
                  } catch (Exception e) {
                      e.printStackTrace();
                  }
              }
          });
  </code></pre>
  <p>Anybody can help ?</p>