Skip to content

ConcatenatingMediaSource2 playback stuck (with MRE) #2835

@TomasValenta

Description

@TomasValenta

Version

Media3 1.8.0

More version details

No response

Devices that reproduce the issue

  • Almost any emulator (very often, almost always)
  • Samsung Galaxy A33 5G (SM-A336B) Android 15 (very rare, but reported several times)
  • Probably another devices

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Yes

Reproduction steps

  1. Checkout my release fork: https://github.com/TomasValenta/media
  2. Play any content
  3. After a while (mostly on Emulators) playback continues, but no sound is heard (many times in a different part) and "playback" continues with no sound even though it should have ended long ago based on the timeline (with no error and isPlaying=true)

Expected result

The media plays successfully (the sound is heard until the end, after all ConcatenatingMediaSource2 sources are played), then playback stop

Actual result

The media plays successfully for a while, then no sound is heard and "playback" continues with no sound even though it should have ended long ago based on the timeline (with no error and isPlaying=true).

Media

Please see full MRE diff:
release...TomasValenta:media:release

and comments:

This issue is annoying mainly because it also happens on physical devices (although rarely), but it can be reproduced very well on Emulators.

Bug Report

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions