This is a simple audio player that can play audio files from the local file system. It is built using React.js and the HTML5 audio element.
- React.js
- TypeScript
- Vite
- rc-progress
- Play/Pause/Stop audio
- Add audio files to the playlist
- Adaptive UI
- Remove audio from the playlist
- Seek audio
- Clone the repository
- Run
yarnornpm installto install the dependencies - Run
yarn devornpm run devto start the development server - Open
http://localhost:5173in your browser, 5173 is the default port but you can change it in thevite.config.jsfile if you want
- Click on the
Addbutton to add audio files to the playlist - Click on the
Playbutton to play the audio - Click on the
Pausebutton to pause the audio - Click on the
Stopbutton to stop the audio - Click on progress bar to seek the audio
- Click on icon trash near title to remove the audio from the playlist
- Choose an audio file from the playlist to play it
You can view a live demo here
Screenshot:
