-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
How to play next and previous song by API? #117
Comments
please provide a online url , what's your download player version? |
Thank you. This is very helpful! How about the change playMode? I tried to update the parameter of 'defaultPlayMode' but it doesn't work. |
not currently supported change playMode by custom ui, welcome pr |
Thank you for your reply. I will look into this again. |
4.14.2 support change playMode now. <ReactJkMusicPlayer playMode={...} /> |
Wow, that's great! Thank you! |
Finally, I found the problem. Please check this Codesandbox As soon as you add the onAudioProgress handler and access the duration and currentTime properties. You will not be able to play the next or previous song but the current song is repeated again and again. No matter you press the next or previous button or click another song in the playlist, it remains the same. Kindly check it. Thank you, |
Ok. please open a new issue. thanks |
How to play next and previous song by API?
Thanks for making such a great player!
Currently, we could call Play/Pause/Reload/Change Current Play Time and etc on Custom UI. Would it be possible to call PlayNext, PlayPrevious, and ChangePlayMode (loop, repeat, shuffle) as well? I tried to do it by updating the playIndex. However, it works not correctly.
Thank you,
The text was updated successfully, but these errors were encountered: