An open API service indexing awesome lists of open source software.

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

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:

![Shar Screenshot](https://raw.githubusercontent.com/sharadcodes/Shar-Player/master/screenshots/shar.png)

## 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();
};

```