-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
AudioInfo has ID field ? #73
Comments
hi~ I plan tomorrow release a new version with custom fields in audioInfo |
Awesome. I am looking forward it :) |
function onAudioPause(audioInfo) {
console.log(audioInfo.id) // 1
console.log(audioInfo.test) // 2
}
<ReactJkMusicPlayer audioLists={[{id:1, test: 2, ...}]} onAudioPause={onAudioPause}/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Let me show you my intent:
I add a song named "ABC" with ID: 123 to audioLists. Then when I pause that song in music player, the state song with same ID will change to paused as well
//audio pause handle
How to do that ? Thank you ! I can find the corresponding song by name but I am assuming there are same name songs
The text was updated successfully, but these errors were encountered: