/html5-audio-player

A simple HTML5 and Vanilla Javascript audio player. One of the many lessons in my Do It Yourself Series

Primary LanguageJavaScript

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
  },
];