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

Start playlist from first track #286

Closed
chaos87 opened this issue Jan 26, 2021 · 5 comments
Closed

Start playlist from first track #286

chaos87 opened this issue Jan 26, 2021 · 5 comments

Comments

@chaos87
Copy link

chaos87 commented Jan 26, 2021

Hi,

With autoPlayInitLoadPlayList=true
If I play second song of playlist A and update audioLists with songs from playlist B then it does not start from beginning but from index of current song that was played from playlist A (second position)

I could reproduce this behavior on the demo site https://react-jinke-music-player.netlify.app/
Tick the box for autoPlayInitLoadPlayList=true, click play and then click to load the second playlist it will start from song 2 and not song 1.

How can I have the player always start the playlist from first index or song 1? Thanks!

@lijinke666
Copy link
Owner

lijinke666 commented Jan 27, 2021

Cannot reproduce

react-jinke-music-player.mp4

@github-actions
Copy link

Hello @chaos87, please provide a online reproduction, and add some steps comment. Issues labeled by Need Reproduce will be closed if no activities in 7 days.
你好 @chaos87,请提供一个可以在线访问的链接, 并详细说明复现步骤, 7天内未回复issue自动关闭。

@chaos87
Copy link
Author

chaos87 commented Jan 27, 2021

A screen recording is worth a billion words
See when I switch to playlist 2, it starts from track 2

Screen.Recording.2021-01-27.at.5.41.16.PM.mov

@github-actions
Copy link

Hello @chaos87, This bug/feature has been fixed/done and will be released together with the next release.
你好 @chaos87,这个bug/feature 已经修复/完成, 会在下个版本一起发布。

@deluan
Copy link

deluan commented Jul 4, 2021

Hey @lijinke666 , this fix (e42177b) caused an issue with quietUpdate: If the song playing is not the first, when I change the audioLists, playIndex resets back to 0. I can confirm this bug was introduced in 4.21.2. Please check the recording:

Screen.Recording.2021-07-03.at.9.05.13.PM.mov

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

3 participants