Skip playback of TS clips with errors
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 bugreportto [email protected] after filing this issue.
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.
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.
Hello, did you manage to solve this problem?
See comment above also.
If this is a live stream, I'd try to catch the error and call prepare() again to restart playback.