Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jspizziri opened this issue Nov 21, 2024 · 1 comment
Open

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

jspizziri opened this issue Nov 21, 2024 · 1 comment

Comments

@jspizziri
Copy link
Collaborator

jspizziri commented Nov 21, 2024

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.

@jspizziri
Copy link
Collaborator Author

@puckey I'm going to fix this soon. But before I do, I just wanted to verify that you agreethat Android should behave like iOS (load should always emit a lastTrack/lastPosition if it exists).

@jspizziri jspizziri self-assigned this Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant