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

Multiple playlists on a page: can't go to next or previous song until the play/pause button is clicked. #516

Open
eltiffster opened this issue Jul 28, 2022 · 0 comments
Labels
Bug: Needs Confirmation 🧐 Bugs that are reported, but needs to be confirmed and replicated.

Comments

@eltiffster
Copy link

Issue Description

When first loading a page with multiple playlists, clicking the playlist next or playlist previous button does nothing at first. However, if you press the play button on any player, this will unfreeze the playlist next and playlist previous buttons. After that, the buttons work as expected for the player that was clicked.

This doesn't seem to affect pages with only one playlist on the page.

Expected Behavior

Clicking the playlist next button should skip to the next song whether the player is playing or not. Clicking the playlist previous button should skip to the previous song whether the player is playing or not.

Steps To Reproduce

The "Multiple Playlists" Codepen has this bug.

  1. Go to the codepen link.
  2. Click the next or previous button on either player. Nothing happens.
  3. Click play/pause. Then click the next or previous button again. The buttons now work as expected.

This does not happen with the Blue Playlist or Flat Black Playlist example, so I believe this issue is limited to pages with multiple playlists.

AmplitudeJS Version

5.3.2

Browser Information

Tested on Chrome v. 103 and Firefox v. 91

Link To Where Your Issue Can Be Reproduced

https://codepen.io/serversideup/pen/JVYXBe

Anything else?

No response

@eltiffster eltiffster added the Bug: Needs Confirmation 🧐 Bugs that are reported, but needs to be confirmed and replicated. label Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: Needs Confirmation 🧐 Bugs that are reported, but needs to be confirmed and replicated.
Projects
None yet
Development

No branches or pull requests

1 participant