Skip to content

onPlaybackResumption() returning empty list leads to hard-to-debug ForegroundServiceDidNotStartInTimeException #2622

@nift4

Description

@nift4

Version

Media3 main branch

More version details

No response

Devices that reproduce the issue

Android 12 and later

Devices that do not reproduce the issue

older devices

Reproducible in the demo app?

Yes

Reproduction steps

  1. Press "Play" button on headset
  2. ensure onPlaybackResumption() returns empty MediaItemsWithStartPosition

Expected result

Nothing happens, app crashes with useful crash or atleast with a message in the logcat. Or at least the crash being documented.

I'd suggest (similar to #2591) throwing an exception if we know we are going to die anyway. But this should also be documented.

Actual result

ForegroundServiceDidNotStartInTimeException

Media

Not applicable

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