androidx / androidx/media

Player gets stuck when seeking after auto transitioning from audio file to hls

Open
#223 0 comments 0 reactions 1 assignee View on GitHub

@microkatz is already working on this.

Since Dec 16, 2022.

question
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:

  1. Clone https://github.com/JaCobbMedia/media3-testing/
  2. Chekout hls-seek-bug branch
  3. Build demo-session app
  4. Play anything (it will override with custom queue)
  5. Seek almost to the end of first item
  6. Wait for player to transition
  7. Second item gets stuck in buffering state and never loads video, unless you move app to background or go to different screen

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.