Skip to content

834772509/EaPlayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EaPlayer

简体中文 English

introduce

Music player written in native JS

  • The UI interface comes from the EA PlayerWrodPress plugin of Louis (louie).
  • Features are in native JS
  • Packaged with WebPack
  • compatible TypeScript

Installation

$ npm install eaplayer
or
$ yarn add eaplayer

Usage

import EaPlayer from "eaplayer";

new EaPlayer({
  playlist: {
    "Playlist Name": [
      {name: "song name", artist: "artist name", src: "song link", image: "song picture", lrc: "lyric link"},
      {name: "song name", artist: "artist name", src: "song link", image: "song picture", lrc: "lyric link"},
    ],
  },
});

Config

parameter description type optional value default value
title title string - EaPlayer
open Expand player boolean - false
color background color string - #333333
autoplay autoplay boolean - false
volume Music volume number 0-100 100
playmode play mode string all once / shuffle / all
defaultPlayList Default playlist string - "Welcome" default playlist
playlist Playlist information Object -

playlist

parameter description type
name song name string
artist Artist name string
src song link string
image song image string
lrc song lyrics string

build

  1. install: npm install
  2. build: npm run build

ref

audio API

License

EaPlayer is open source using GPL V3.0 protocol, please try to abide by the open source protocol.

Participate in contribution

  1. Fork this repository
  2. Create a new Feat_xxx branch
  3. Submit the code
  4. Create a new Pull Request

About

a web music player

Resources

Stars

Watchers

Forks

Releases

No releases published