ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

Skip playback of TS clips with errors

Open LiuDeng opened this issue 3 years ago • 4 comments

ExoPlayer Version

2.18.1

Devices that reproduce the issue

If one of the ts in hls m3u8 list get error,then ExoPlayer stop to play. But Chrome browser, iOS AVPlayer and IJKPlayer by bilibili can jump the error ts and play next ts. ExoPlayer can set an error TS upper limit, for example, if the error exceeds 3 times, it will stop playing.

Devices that do not reproduce the issue

Any Android Device

Reproducible in the demo app?

Not tested

Reproduction steps

None

Expected result

None

Actual result

None

Media

Any m3u8 file with one ts error.

Bug Report

  • [X] You will email the zip file produced by adb bugreport to [email protected] after filing this issue.

LiuDeng avatar Oct 31 '22 14:10 LiuDeng

If there is an error reading a TS file I actually don't see why trying again should give a different result.

ExoPlayer handles this in the same way as any other bad media and exits with a playback exception.

I don't think we will introduce a retry from within thelibrary. An app can do such a retry mechanism on it's own when the playback error callback is called.

marcbaechinger avatar Oct 31 '22 18:10 marcbaechinger

For a ts file error in the m3u8, Chome and iOS AVPlayer will automatically skip the error ts and play the next correct ts instead of reporting an error and quitting.

LiuDeng avatar Nov 03 '22 02:11 LiuDeng

Hello, did you manage to solve this problem?

dragon4568524422k2 avatar Feb 16 '25 09:02 dragon4568524422k2

See comment above also.

If this is a live stream, I'd try to catch the error and call prepare() again to restart playback.

marcbaechinger avatar Feb 17 '25 12:02 marcbaechinger