title: Android HLS- Streaming failed to fetch segment
body: <p>I write a Videoplayer for Android to stream Video over HLS. On my Server I have the m3u8-Playlist and the .ts-Segments.
  My Code look like this:</p>
  
  <pre><code>protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      vidSurface = (SurfaceView) findViewById(R.id.surfView);
      vidHolder = vidSurface.getHolder();
      vidHolder.addCallback(this);
  }
  
  
  public void surfaceCreated(SurfaceHolder arg0) {
      try {
          mediaPlayer = new MediaPlayer();
          mediaPlayer.setDisplay(vidHolder);
          mediaPlayer.setDataSource(vidAddress);
          mediaPlayer.prepareAsync();
          mediaPlayer.setOnPreparedListener(this);
          mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
      }
      catch(Exception e){
          e.printStackTrace();
      }
  }    
  </code></pre>
  
  <p>The Player works fine for the Apple bipbopall.m3u8 example. But when I try to play my Playlist this error occurs:</p>
  
  <pre><code>E/PlaylistFetcher﹕ failed to fetch .ts segment at url 'http://example.com/USSM.mp4Frag1Num0.ts'
  E/LiveSession﹕ XXX Received error -1008 from PlaylistFetcher.
  E/MediaPlayer﹕ error (1, -1008)
  </code></pre>
  
  <p>I think there is a problem with the AES-128 decryption of the files. Does the MediaPlayer decrypt the files by him self and how can I check if the decryption was successful? (I use the latest Android-Version)</p>