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
yarn
ornpm install
to install the dependencies - Run
yarn dev
ornpm run dev
to start the development server - Open
http://localhost:5173
in your browser, 5173 is the default port but you can change it in thevite.config.js
file if you want
- Click on the
Add
button to add audio files to the playlist - Click on the
Play
button to play the audio - Click on the
Pause
button to pause the audio - Click on the
Stop
button 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: