title: Android 3.x / HLS how to start at the end of the stream
body: <p>I am playing an HLS stream with the following code : </p>
  
  <pre><code>mediaPlayer = new MediaPlayer();
  mediaPlayer.setDataSource("http://iphoned5.akamai.com.edgesuite.net/mhbarron/nasatv/nasatv_all.m3u8");
  mediaPlayer.setDisplay(holder);
  mediaPlayer.setOnBufferingUpdateListener(this);
  mediaPlayer.setOnCompletionListener(this);
  mediaPlayer.setOnPreparedListener(this);
  mediaPlayer.setOnVideoSizeChangedListener(this);
  mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
  mediaPlayer.prepareAsync();
  </code></pre>
  
  <p>With this code, what I see in the video is about 5 minutes late according to the same stream played into VLC.</p>
  
  <p>The player is starting to play the first chunk of the .m3u8 file. 
  But the hls specification precises that the first chunk are the older and the last the newest. So the player should start to play the last chunk of the file.</p>
  
  <p>I suspect there is something to do with the parameters of the setDataSource method but I cannot figure how.</p>