ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

Exoplayer2 keep trying to load stream when getting error

Open jiafei1986 opened this issue 9 years ago • 4 comments

I am now developing the video app by dash stream, I found the exoplayer2 keep trying to load the data when getting error, it still trying to load even close the player, below is the exception. is there a way stop the load thread? com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 404 at com.google.android.exoplayer2.upstream.DefaultHttpDataSource.open(DefaultHttpDataSource.java:211) at com.google.android.exoplayer2.upstream.DefaultDataSource.open(DefaultDataSource.java:123) at com.google.android.exoplayer2.upstream.DataSourceInputStream.checkOpened(DataSourceInputStream.java:102) at com.google.android.exoplayer2.upstream.DataSourceInputStream.open(DataSourceInputStream.java:65) at com.google.android.exoplayer2.upstream.ParsingLoadable.load(ParsingLoadable.java:114) at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:295) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) at java.lang.Thread.run(Thread.java:761)

jiafei1986 avatar Jul 04 '17 01:07 jiafei1986

What do you mean by "close the player"? Are you seeing this loading error repeatedly even after calling ExoPlayer.release()?

andrewlewis avatar Jul 04 '17 07:07 andrewlewis

@andrewlewis I just run the demo app, and click the back button to quit the player Acvitiy.

jiafei1986 avatar Jul 04 '17 23:07 jiafei1986

I cannot reproduce this. The player makes a couple of attempts (in rapid succession) and then gives up retrying. Even if I configure the source manually to retry forever, retries stop as expected when quitting the player activity.

Please provide proper reproduction steps and all of the information requested in the issue template, else there's nothing actionable here and we will close the issue. Thanks!

ojw28 avatar Jul 05 '17 10:07 ojw28

Closing due to lack of information and being unable to reproduce.

ojw28 avatar Jul 19 '17 20:07 ojw28