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

无法在Hexo文章页面调用 #120

Open
Magstic opened this issue May 14, 2023 · 2 comments
Open

无法在Hexo文章页面调用 #120

Magstic opened this issue May 14, 2023 · 2 comments

Comments

@Magstic
Copy link

Magstic commented May 14, 2023

这是我的调用方式:
{% aplayer "XX" "XX" "https://xx.xx/xxx.mp3" %}
(有无引号均异常)

环境是Hexo的butterfly。
音频文件在服务器中,可正常外部访问。
文章页面无法调用。该显示播放器的地方是一片空白。
相关设置均有调整,但是依旧是空白。
不知有没有系统的解决方法?

网易云音乐虽然是正常调用的,但是地区限制以及曲库不全的问题不想使用。

@Magstic Magstic closed this as completed May 29, 2023
@zengtianli
Copy link

你好,我遇到了一样的问题

@Magstic Magstic reopened this Feb 7, 2024
@Magstic
Copy link
Author

Magstic commented Feb 7, 2024

@zengtianli
你好,我现在已经不再使用该插件;原因是美观性虽有,预加载选项卡确不生效的,以至于频宽分配异常,拖慢页面。
我已经忘记了自己是如何解决的这个问题,不过相关设置应该还在我的配置文件内,我将检索到的相关内容复制在下面:

在_config.yml中添加如下内容:

# 音樂擴充
aplayer:
  cdn: https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js  # 引用 APlayer.js 外部 CDN 地址 (默认不开启)
  style_cdn: https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css
  meting: true       # MetingJS 支持
  meting_cdn: https://cdn.jsdelivr.net/npm/meting/dist/Meting.min.js # 引用 Meting.js 外部 CDN 地址 (默认不开启)

在_config.butterfly.yml中添加如下内容:

aplayerInject:
  enable: true
  per_page: true

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