title: I am not able to play video from https link
body: <p>I'm using Media Player in my Android application. The videos from http link is playing in all versions of android, but the https link is playing only in Android 4.1.2, but in lower versions it is not playing. Showing following error..</p>
  
  <pre><code>java.io.IOException: Prepare failed.: status=0x1 Error(1,-18).
  </code></pre>
  
  <p>I'm using the following code </p>
  
  <pre><code>   MediaPlayerplayer = new MediaPlayer();
      player.setOnPreparedListener(this);
  player.setOnCompletionListener(this);
  player.setOnBufferingUpdateListener(this);
  player.setOnSeekCompleteListener(this);
  player.setScreenOnWhilePlaying(true);
  player.setDisplay(holder);
  
      try {
  String videoUrl = getIntent().getExtras().get("url").toString();
      File mediaFile = new File(fileName);
  if (mediaFile.exists()) {
      FileInputStream fi = new FileInputStream(mediaFile);
      player.setDataSource(fi.getFD());                   
      }
  else{
      player.setDataSource(videoUrl);
  }
  </code></pre>