androidx / androidx/media

Certain hls videos wait forever for eos in mediaCodec

Open
#660 5 comments 0 reactions 1 assignee View on GitHub

@tianyif is already working on this.

Since Sep 20, 2023.

bug needs triage
Dominant language
Java
Stars
3k
Forks
955
Avg merge
12d 14h
Merged PRs (30d)
2

Description

Version

ExoPlayer 2.18.1

More version details

No response

Devices that reproduce the issue

Samsung Galaxy S22, Android 12

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

No

Reproduction steps
  1. Start broadcasting through apple low latency hls
  2. Stop broadcasting.
Expected result

return Player.STATE_END from onPlayerStateChanged listener
and isPlaying() is false

Actual result

return Nothing from onPlayerStateChanged listener
and isPlaying() is alway true

Media
[MediaCodecRenderer.drainOutputBuffer:1822]
스크린샷 2023-09-19 오후 4 06 12

If you play it again with the same media link, there is no problem, and problems occur only when the stream is cut off during video playback, making it difficult to attach media files.

Instead, when I checked the MediaCodecRender through debugging, I found that I was checking the infinite loop in the above state

Please let me know if you need any additional information

Bug Report
  • You will email the zip file produced by adb bugreport to android-media-github@google.com after filing this issue.

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.