hexo-tag-mplayer

Insert cPlayer in Hexo by using tags.

Install

1
$ npm install hexo-tag-mplayer --save

Quick Start

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{% mplayer %}
playlist: [
{
name: 'Song name...',
artist: 'Singer name...',
src: 'Song resource link...',
poster: 'Song Cover link...',
lyric: 'Lyrics...',
Sublyric: 'Deputy lyrics, generally for translation...'
},
{
...
},
...
],
autoplay: true,
volume: 0.75,
playmode: "listloop",
big: true,
dark: false
{% endmplayer %}

For more details, visit hexo-tag-mplayer Demo here.

Option

OPTION default content description
playlist [] Playlist.
autoplay false Autoplay (mobile is not available).
volume 1 Default volume.
playmode listloop Default play mode.
big false Default player size.
dark false Default player theme.

For more details, visit CPlayer Demo here.

Thanks

Thanks for cPlayer & Inspired by hexo-tag-cplayer .