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

Playlist fails to play next audio after first ends #225

Open
Bakual opened this issue Jun 29, 2022 · 1 comment
Open

Playlist fails to play next audio after first ends #225

Bakual opened this issue Jun 29, 2022 · 1 comment

Comments

@Bakual
Copy link

Bakual commented Jun 29, 2022

When the first audio is finished playing, the player is supposed to play the next item in list.
Instead it replays the first one, but displays the info from the second item
In the browser console I get this error:
image

Using next/prev works, there it plays the next item just fine. It looks like an error just when it should automatically switch to the next item in the list.

I've tested it also with the demo example (adjusted the non-working links). So it doesn't seem to be a code issue on my side.

@Bakual
Copy link
Author

Bakual commented Jun 29, 2022

I think the issue is on this line:

player.setSrc(player.playlist[++player.currentPlaylistItem]);

Should be
player.setSrc(player.playlist[++player.currentPlaylistItem].src);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant