androidx / androidx/media

Player randomly stuck at buffering state forever after couple of seeking (Widevine Dash).

Open
#1,984 3 comments 0 reactions 1 assignee View on GitHub

@microkatz is already working on this.

Since Dec 19, 2024.

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

Description

Version

Media3 1.5.0

More version details

commit SHA = df887a942222914836081f868067960eb0149547

There seem to be similar issues are opened previously, #1022 and #719, they are both about a year old and no solution are implemented/offered.

Devices that reproduce the issue

Moto g 5g - 2023 Running Android 14

Devices that do not reproduce the issue

Since the bug appears randomly this list might not be correct, and longer testing may result in bug appearing.

  • Samsung Galaxy A52 5G running Android 14
  • Huawei Mate 20 lite running EMUI 12
Reproducible in the demo app?

Yes

Reproduction steps
  1. In the demo app, download one of the following asset (the list is not exhaustive):
  • Widevine Dash (MP4, H264) - HD (cenc) - 1280 x 570, 7.21 Mbps
  • Widevine Dash (MP4, H264) - HD (cbcs) - 1280 x 570, 7.25 Mbps
  • Widevine Dash (MP4, H265) - HD (cenc) - 1280 x 570, 3.95 Mbps
  • Widevine Dash (policy tests) - SW secure crypto (L3)
  • Widevine Dash (policy tests) - HW secure all (L1)
  1. After download finishes, close all internet connections and open airplane mode.
  2. Start watching the asset.
  3. Seek to random position.
  4. Repeat step 4 until it gets stuck at buffering state.
Expected result

The playback should always start after seeking. It should never infinitely stay at buffering state, or it should thrown an error stating that player will not recover from the buffering state.

Actual result

The playback stops,
It goes into buffering state,
It stays at buffering state forever,
No error is thrown.

Media

From Demo app (the list is not exhaustive):

  • Widevine Dash (MP4, H264) - HD (cenc) - 1280 x 570, 7.21 Mbps
  • Widevine Dash (MP4, H264) - HD (cbcs) - 1280 x 570, 7.25 Mbps
  • Widevine Dash (MP4, H265) - HD (cenc) - 1280 x 570, 3.95 Mbps
  • Widevine Dash (policy tests) - SW secure crypto (L3)
  • Widevine Dash (policy tests) - HW secure all (L1)
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.