u2sb u2sb
Home
  • 弹幕服务器 (opens new window)
  • MetingJS.Server
  • vuepress-plugin-smplayer
  • vuepress-plugin-vssue-global (opens new window)
  • hexo-tag-mmedia
  • 通用弹幕服务器
  • OBS导播键盘
GitHub (opens new window)
Home
  • 弹幕服务器 (opens new window)
  • MetingJS.Server
  • vuepress-plugin-smplayer
  • vuepress-plugin-vssue-global (opens new window)
  • hexo-tag-mmedia
  • 通用弹幕服务器
  • OBS导播键盘
GitHub (opens new window)
  • Overview

  • MetingJsServer

  • vuepress-plugin-smplayer

  • hexo-tag-mmedia

    • 安装和基本介绍
    • Audio
    • Video
    • Meting
    • Aplayer
      • 介绍
      • 使用
      • 参数
        • JSON 参数
      • 配置
    • Dplayer
    • 哔哩哔哩动画
    • 西瓜视频
    • ArtPlayer
    • 开发文档
    • 0.X 版本
  • Danmu.Server

  • OpenSw
  • hexo-tag-mmedia
MonologueChi
2021-02-23
目录

Aplayer

# 介绍

可以插入 aplayer 标签

# 使用

{% mmedia "aplayer" "name:songName" "url:a.mp3" %}
1
{% mmedias "aplayer" "autoplay:false" %}
{
  "volume": 0.8,
  "audio":
  [
    {
      "name": "name1",
      "artist": "artist1",
      "url": "url1.mp3",
      "cover": "cover1.jpg",
      "lrc": "lrc1.lrc",
      "theme": "#ebd0c2"
    },
    {
      "name": "name2",
      "artist": "artist2",
      "url": "url2.mp3",
      "cover": "cover2.jpg",
      "lrc": "lrc2.lrc",
      "theme": "#46718b"
    }
  ]
}
{% endmmedias %}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

# 参数

此部分请熟读 APlayer 文档 (opens new window)

  • 使用 : 或 = 分割。

详细参数表:

参数 默认 解释
name - audio name
artist - audio artist
url - audio url
cover - audio cover
lrc - audio lrc
theme - audio theme
type auto audio type 可选 'auto', 'hls', 'normal'
autoplay false autoplay
loop 'all' player loop play, values: 'all', 'one', 'none'
order 'list' player play order, values: 'list', 'random'
volume 0.7 default volume,
tlistMaxHeight - list max height

不在表格内的参数请使用下面 JSON 类型的参数。

# JSON 参数

mmedia 插件允许在 contents 部分使用 JSON 编写配置,由于允许使用 JSON5,此项配置几乎与 APlayer 完全一致。

详情请见上方示例。

# 配置

默认配置可写入 _config.yml 下

mmedia:
  aplayer:
    js: https://cdn.jsdelivr.net/npm/aplayer@1/dist/APlayer.min.js
    css: https://cdn.jsdelivr.net/npm/aplayer@1/dist/APlayer.min.css
    default:
      contents:
1
2
3
4
5
6
#开源项目#hexo-tag-mmedia
上次更新: 10/4/2022, 11:21:17 PM
Meting
Dplayer

← Meting Dplayer→

Theme by Vdoing | Copyright © 2018-2022 MonoLogueChi | CC BY-NC-SA 4.0
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式