Skip to content

[Android] TrackPlayer.load doesn't pass correct event data #2408

@jspizziri

Description

@jspizziri

Describe the Bug
On Android, the TrackPlayer.load(...) call will trigger a PlaybackActiveTrackChanged, however if there was a previous item playing, lastTrack on the emitted event is always undefined. On iOS lastTrack is emitted as expected in this scenario.

Steps To Reproduce

Use load to add tracks and observe the PlaybackActiveTrackChanged events lastTrack property.

EDIT: might only happen when transitioning between downloaded and undownloaded tracks.

Code To Reproduce
N/A

Replicable on Example App?

I'll be verifying this over the next few days.

Environment Info:

Google Pixel 6a

How I can Help

I intend to fix this, but I want it to be tracked in git.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions