Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 

readme.md

hexo-tag-cplayer

A hexo plugin for cPlayer

简体中文文档

How to use

npm install hexo-tag-cplayer --save

Add such code to your post. cplayer will be generated there.

{% cplayer [autoplay] [yaml|cson|json] %}
# type your config here
{% endcplayer %}

Config Examples

YAML:

{% cplayer autoplay %}
- name: チルドレンレコード # name
  artist: 96猫,伊東歌詞太郎 # music artist
  poster: https://cplayer.js.org/801422833716a4f0f96ff6dff1f77dfe.jpg # music poster
  src: https://cplayer.js.org/8af423669c27d265bb129d04a927044f.mp3 # music resource
- 27955597 # add music by 163music ID 
{% endcplayer %}

This will add 2 songs. "チルドレンレコード" and "Crazy For You" from 163music

CSON:

{% cplayer autoplay cson %}
[
  {
    name: "チルドレンレコード"
    artist: "96猫,伊東歌詞太郎"
    poster:"https://cplayer.js.org/801422833716a4f0f96ff6dff1f77dfe.jpg"
    src:"https://cplayer.js.org/8af423669c27d265bb129d04a927044f.mp3"
  }
  27955597
]
{% endcplayer %}

This is equivalent to the configuration of YAML.

JSON:

{% cplayer autoplay json %}
[
  {
    "name": "チルドレンレコード",
    "artist": "96猫,伊東歌詞太郎",
    "poster":"https://cplayer.js.org/801422833716a4f0f96ff6dff1f77dfe.jpg",
    "src":"https://cplayer.js.org/8af423669c27d265bb129d04a927044f.mp3"
  },
  27955597
]
{% endcplayer %}

This is equivalent to the configuration of YAML.

About

No description, website, or topics provided.

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.