Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何添加本地音乐源? #5

Open
masterrite opened this issue Sep 2, 2020 · 1 comment
Open

如何添加本地音乐源? #5

masterrite opened this issue Sep 2, 2020 · 1 comment

Comments

@masterrite
Copy link

您好!

我想要在hexo中添加电脑本地音乐源的话应该如何输入source部分?

谢谢!

@mapxn
Copy link

mapxn commented Sep 9, 2021

你可以试一下相对路径,当然,绝对路径是一定可以的。

# 绝对路径
{% cplayer autoplay %}
- name: チルドレンレコード # name
  artist: 96猫,伊東歌詞太郎 # music artist
  poster: https://cplayer.js.org/801422833716a4f0f96ff6dff1f77dfe.jpg # music poster
  src: https://masterrite.github.io/assert/abc.mp3 # 绝对路径
- 27955597 # add music by 163music ID 
{% endcplayer %}
# 相对路径
{% cplayer autoplay %}
- name: チルドレンレコード # name
  artist: 96猫,伊東歌詞太郎 # music artist
  poster: https://cplayer.js.org/801422833716a4f0f96ff6dff1f77dfe.jpg # music poster
  src: /assert/abc.mp3 # 相对路径
- 27955597 # add music by 163music ID 
{% endcplayer %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants