blinkfox / hexo-theme-matery

A beautiful hexo blog theme with material design and responsive design.一个基于材料设计和响应式设计而成的全面、美观的Hexo主题。国内访问:http://blinkfox.com
https://blinkfox.github.io/
Apache License 2.0
5.23k stars 1.25k forks source link

音乐播放无法使用 #836

Open shilizhuang opened 2 years ago

shilizhuang commented 2 years ago

image 如图, music: enable: true title: #非吸底模式有效 enable: true show: 听听音乐 autoHide: true # hide automaticaly server: tencent # netease, tencent, kugou, xiami, baidu type: playlist # require song, playlist, album, search, artist id: 2362260213 # song id / playlist id / album id / search keyword fixed: true # 开启吸底模式 autoplay: false # 是否自动播放 theme: '#42b983' loop: 'all' # 音频循环播放, 可选值: 'all', 'one', 'none' order: 'random' # 音频循环顺序, 可选值: 'list', 'random' preload: 'auto' # 预加载,可选值: 'none', 'metadata', 'auto' volume: 0.7 # 默认音量,请注意播放器会记忆用户设置,用户手动设置音量后默认音量即失效 listFolded: true # 列表默认折叠 hideLrc: true # 隐藏歌词 该配的我都配置了,但是没有效果啊

2319048236 commented 2 years ago

我也想知道

UniStart2 commented 2 years ago

下面是我博客关于音乐部分的配置,同时需要安装hexo插件hexo-tag-aplayer

# Whether to display the musics.
# 是否在首页显示音乐.
music:
  enable: false
  title: #非吸底模式有效
    enable: true
    show: 听听音乐
  autoHide: true # hide automaticaly
  server: kugou #require music platform: netease, tencent, kugou, xiami, baidu
  type: playlist #require song, playlist, album, search, artist
  id: 3427965 #require song id / playlist id / album id / search keyword
  fixed: true # 开启吸底模式
  autoplay: true # 是否自动播放
  theme: "#42b983"
  loop: "all" # 音频循环播放, 可选值: 'all', 'one', 'none'
  order: "list" # 音频循环顺序, 可选值: 'list', 'random'
  preload: "auto" # 预加载,可选值: 'none', 'metadata', 'auto'
  volume: 0.7 # 默认音量,请注意播放器会记忆用户设置,用户手动设置音量后默认音量即失效
  listFolded: true # 列表默认折叠
  hideLrc: true # 隐藏歌词

# Whether to display the musics.
# 单独的音乐页面.
musics:
  enable: true
  title: #非吸底模式有效
    enable: true
    show: 听听音乐
  server: netease #require music platform: netease, tencent, kugou, xiami, baidu
  type: playlist #require song, playlist, album, search, artist
  id: 330695641 #require song id / playlist id / album id / search keyword
  fixed: false # 开启吸底模式
  autoplay: true # 是否自动播放
  theme: "#42b983"
  loop: "all" # 音频循环播放, 可选值: 'all', 'one', 'none'
  order: "random" # 音频循环顺序, 可选值: 'list', 'random'
  preload: "auto" # 预加载,可选值: 'none', 'metadata', 'auto'
  volume: 0.7 # 默认音量,请注意播放器会记忆用户设置,用户手动设置音量后默认音量即失效
  listFolded: false # 列表默认折叠
  listMaxHeight: "525px" #列表最大高度

# hexo-tag-aplaye配置
aplayer:
  meting: true # 启用 MetingJS

下面是我在文章的使用

{% meting "329925" "netease" "song" "loop:all" "order:one" listfolded %}

下面是我之前遇到问题时参考的博客

夜法之书