Player gets stuck when seeking after auto transitioning from audio file to hls
@microkatz is already working on this.
Since Dec 16, 2022.
- Dominant language
- Java
- Stars
- 3k
- Forks
- 955
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 2
Description
Hello,
Didn't want to register this as a bug because I'm not really sure if this is Media3 issue or there's an issue with our content.
The problem that I'm having is that I have for example 2 items in player's queue - first one is audio file (mp3) and second one is HLS video stream. After auto transitioning we're doing player.seekTo() so that user could continue listening from where he/she has previously finished, but player gets stuck in BUFFERING state and doesn't seem to load. I couldn't see anything wrong in logs from EventLogger. Tried different HLS files, but problem still persisted, then tried with different mp3s and that actually helped. So I'm not really sure wether this is our content issue or ExoPlayer's one?
I've forked media repo and created a separate branch for demo-session app where issue is easily reproducable.
Steps to reproduce:
- Clone https://github.com/JaCobbMedia/media3-testing/
- Chekout
hls-seek-bugbranch - Build
demo-sessionapp - Play anything (it will override with custom queue)
- Seek almost to the end of first item
- Wait for player to transition
- Second item gets stuck in buffering state and never loads video, unless you move app to background or go to different screen
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.