title: Streaming m3u8 HLS Audio on Android
body: <p>i've found problems trying to reproduce m3u8 HLS audio streaming on Android. Right now i can reproduce video in m3u8 HLS link with:</p>
  
  <pre><code>Intent i = new Intent(Intent.ACTION_VIEW); 
  i.setDataAndType(Uri.parse(contentURL),"video/mp4");                                                        
  startActivityForResult(i,0)
  </code></pre>
  
  <p>I've already tried this method:</p>
  
  <p>number 1:</p>
  
  <pre><code>Intent i = new Intent(Intent.ACTION_VIEW); 
  i.setDataAndType(Uri.parse(contentURL),"video/mp4");                                                        
  startActivityForResult(i,0)
  </code></pre>
  
  <p>number 2:</p>
  
  <pre><code>Intent i = new Intent(Intent.ACTION_VIEW); 
  i.setDataAndType(Uri.parse(contentURL),"audio/mp3");                                                        
  startActivityForResult(i,0)
  </code></pre>
  
  <p>number 3:</p>
  
  <pre><code>  MediaPlayer mediaPlayer = MediaPlayer.create(this, Uri.parse("http:\\testexample.m3u8"));
    mediaPlayer.start();
  </code></pre>
  
  <p>In case 3 the error on log like "mediaserver Died", in case 1 and 2 simply the phone gallery said "can't reproduce video" or "can't reproduce this kind of file".
  Last but not the least, if i send the http m3u8 link with an email at a Nexus 4 with Android 4.3, it open the link with chrome, then ask to open phone galleryplayer, and reproduce it. The same thing done with da SII with cyanogenmod and android 4.2.1 said, as before, "cannot reproduce video".</p>