title: Android MediaPlayer play m3u8 only audio streamming
body: <p>Hi all and thanks in advance,</p>
  
  <p>After all day looking, searching and trying i do not know if it is even possible, or if the problem is in the code, or if the problem is in the server....</p>
  
  <p>First of all, can MediaPlayer play a m3u8 file? </p>
  
  <p>In case Yes...it is only in versions greater than 3.0 or 4.0?</p>
  
  <p>if i just try to play the url in a real device 4.0.4 i get error (1,-1010) or error 100 or -214.... The code is simple:</p>
  
  <pre><code>MediaPlayer mp = new MediaPlayer();
  fich="http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8"; //e.g.
  mp.setDataSource(localContext, Uri.parse(fich));
  mp.setAudioStreamType(AudioManager.STREAM_MUSIC);
  mp.setVolume(((float)volumenAudio / 100), ((float)volumenAudio / 100));
  mp.prepare();
  </code></pre>
  
  <p>Is there a base error in my way of doing this? something i do not know?</p>
  
  <p>Best regards and thanks,</p>