com.google.android.exoplayer.ExoPlaybackException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

If you're using ExoPlayer with Akamai, try switching to OkHttpDataSource (an ExoPlayer extension that supports OkHttp3)

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Redirections (302) doesn't work
    via GitHub by icastell
    ,
  • How can I handle this exception?
    via Stack Overflow by Anon
    ,
  • How can I handle this exception?
    via GitHub by provizor54
    ,
  • Something happend at 13f4a3e
    via GitHub by tai2
    ,
  • GitHub comment 939#156954868
    via GitHub by tungds
    ,
    • com.google.android.exoplayer.ExoPlaybackException: com.google.android.exoplayer.upstream.HttpDataSource$InvalidResponseCodeException: Response code: -1 at com.google.android.exoplayer.SampleSourceTrackRenderer.maybeThrowError(SampleSourceTrackRenderer.java:263) at com.google.android.exoplayer.SampleSourceTrackRenderer.maybeThrowError(SampleSourceTrackRenderer.java:149) at com.google.android.exoplayer.ExoPlayerImplInternal.incrementalPrepareInternal(ExoPlayerImplInternal.java:275) at com.google.android.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:205) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:137) at android.os.HandlerThread.run(HandlerThread.java:61) at com.google.android.exoplayer.util.PriorityHandlerThread.run(PriorityHandlerThread.java:40) Caused by: com.google.android.exoplayer.upstream.HttpDataSource$InvalidResponseCodeException: Response code: -1 at com.google.android.exoplayer.upstream.DefaultHttpDataSource.open(DefaultHttpDataSource.java:210) at com.google.android.exoplayer.upstream.DefaultUriDataSource.open(DefaultUriDataSource.java:135) at com.google.android.exoplayer.extractor.ExtractorSampleSource$ExtractingLoadable.load(ExtractorSampleSource.java:824) at com.google.android.exoplayer.upstream.Loader$LoadTask.run(Loader.java:209) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390) at java.util.concurrent.FutureTask.run(FutureTask.java:234) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) at java.lang.Thread.run(Thread.java:841)

    Users with the same issue

    ajinkya_w
    20 times, last one,
    Unknown visitor1 times, last one,
    Agócs Tamás
    50 times, last one,
    martyn
    8 times, last one,
    Unknown visitor1 times, last one,