1.0.2 • Published 2 years ago

eaplayer v1.0.2

Weekly downloads
-
License
GPL
Repository
github
Last release
2 years ago

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

parameterdescriptiontypeoptional valuedefault value
titletitlestring-EaPlayer
openExpand playerboolean-false
colorbackground colorstring-#333333
autoplayautoplayboolean-false
volumeMusic volumenumber0-100100
playmodeplay modestringallonce / shuffle / all
defaultPlayListDefault playliststring-"Welcome" default playlist
playlistPlaylist informationObject-

playlist

parameterdescriptiontype
namesong namestring
artistArtist namestring
srcsong linkstring
imagesong imagestring
lrcsong lyricsstring

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
1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago