google / google/ExoPlayer

HLS m3u8 still loads after seekToPrevious/seekToNext

Open
#10,813 2 comments 0 reactions 1 assignee Assigned to @tianyif View on GitHub
enhancement
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

### ExoPlayer Version

2.18.2

### Devices that reproduce the issue

Samsung Galaxy s10e / Android 12

### Devices that do not reproduce the issue

_No response_

### Reproducible in the demo app?

Not tested

### Reproduction steps

1. We have playlist of hls stations
2. Play first
3. Call seekToPrevious/seekToNext
4. Check network calls

### Expected result

After switching to next radio we should load m3u8 only for current station

### Actual result

After switching to next radio app loads m3u8 for previous station and for current station.
If we call seekToNext a lot of time, app will be load each m3u8 every time. We have 90 stations and after skipping all stations I see 90 request to obtain m3u8 file for each station.

### Media

example hls
https://radiorecord.hostingradio.ru/rr_main96.aacp
https://radiorecord.hostingradio.ru/rus_main96.aacp

### Bug Report

- [ ] You will email the zip file produced by `adb bugreport` to dev.exoplayer@gmail.com after filing this issue.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.