Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 598 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 598 Bytes

HTML5 Audio Player

An html5 audio player module

This module is still under construction.

Installation

Getting Started

Create an audio element in your html file and assign it an id.

<audio id="sample_audio_player"></audio>

In your javascript file, reference it as such

var myAudioPlayer = new AudioPlayer(config);

Format for playlist

[
  {
    title: String, // Title of track
    author: String, // Artist, author
    src: String, // Link to audio file
    img: String, // Artwork
  },
];