https://github.com/sharadcodes/shar-player
A minimal audio player written in Vanilla JS
https://github.com/sharadcodes/shar-player
Last synced: 3 months ago
JSON representation
A minimal audio player written in Vanilla JS
- Host: GitHub
- URL: https://github.com/sharadcodes/shar-player
- Owner: sharadcodes
- License: mit
- Created: 2020-04-12T12:52:03.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-13T07:03:01.000Z (about 6 years ago)
- Last Synced: 2025-12-26T11:44:38.704Z (6 months ago)
- Language: JavaScript
- Homepage: https://sharadcodes.github.io/Shar-Player/examples/first/index.html
- Size: 12.1 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Shar-Player
A minimal audio player written in Vanilla JS
Developed by [sharadcodes](https://github.com/sharadcodes) with :heart:

## DEMO
Example 1: [LIVE DEMO](https://sharadcodes.github.io/Shar-Player/examples/first/index.html)
## USAGE
```html
Shar Player Example
window.onload = function () {
const song_list = [
"audio_files/Faded.mp3",
"audio_files/on_and_on.mp3",
"audio_files/Cartoon_Howling.mp3",
"audio_files/bensound-anewbeginning.mp3",
];
// new object
new SharPlayer("player", {
tracks: song_list,
titles: false,
artwork: false,
})
.initPlayer()
.show();
};
```