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

Player plays first track in playlist if i update playlist #325

Closed
SpiritMod opened this issue Feb 25, 2021 · 1 comment
Closed

Player plays first track in playlist if i update playlist #325

SpiritMod opened this issue Feb 25, 2021 · 1 comment

Comments

@SpiritMod
Copy link

SpiritMod commented Feb 25, 2021

Version 4.21.1

Description

Player plays first track in playlist if i update playlist

Reproduce Link

Steps to Reproduce

  1. play track on page with index > 0
  2. click twice on button loadmore "Больше →"

player setPlay first track with index 0

Player Code

@lijinke666
Copy link
Owner

if audio list changed, current play index is reset

this.updatePlayIndex(
!isEqualAudioLists && clearPriorAudioLists
? DEFAULT_PLAY_INDEX
: playIndex,

if you want to control current play index , i think you should use playIndex props. more detail see : #286

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

2 participants