DEV Community

Discussion on: How to create a progressive audio player with React hooks

 
nicomartin profile image
Nico Martin

You could either load the file via an http request or you could import it at build time (I guess you're using Webpack?).
You would then need to write your own logic what should happen when the song finished. But you could use the onEndedcallback to change the audio file.

Thread Thread
 
adermanjr profile image
Aderman Jr.

Ok. Thank you, man!