安装aplayer以及dplayer

1
2
3
npm install hexo-tag-aplayer

npm install hexo-tag-dplayer

插入视频

1
{% dplayer "url=https://pan.w2aa.ml/api/raw/?path=/MV/20220411112859.mp4"  "pic=https://pan.w2aa.ml/api/raw/?path=/img/1021152.jpg" "loop=yes" "theme=#FADFA3" "autoplay=false" "token=tokendemo" %}

插入音乐

1
{% aplayer "歌曲名称" "作者" "音乐_url" "封面图片_url" "autoplay" %}

        

插入网易云音乐

1
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=330 height=86 src="//music.163.com/outchain/player?type=2&id=1929370102&auto=1&height=66"></iframe>

插入youtube视频

1
<iframe width="560" height="315" src="https://www.youtube.com/embed/Qpf26PtBXgo" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>