音频
- 网易云音乐(常规)
<iframe frameborder="no" border="1" marginwidth="0" marginheight="0" width=100% height=86 src="https://music.163.com/outchain/player?type=2&id=1295824647&auto=0&height=66"></iframe>
- 网易云音乐(无法获得外链的音频)
http://music.163.com/song/media/outer/url?id=ID数字.mp3
<audio id="audio" controls="" preload="none">
<source id="mp3" src="http://music.163.com/song/media/outer/url?id=281951.mp3">
</audio>
其他网站获取(支持酷狗等)https://music.liuzhijin.cn/
https://www.sunweihu.com/ 中 https://www.sunweihu.com/sou-music/ 都是一个网站吧
<audio id="audio" controls="" preload="none">
<source id="mp3" src="https://sharefs.yun.kugou.com/202003201515/5205da6c2716b011357f1b942d7b4960/G180/M07/04/08/9A0DAF3FKAqATsbCACy595OooJM759.mp3">
</audio>
- 虾米音乐(直接获得外链即可)
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width="750" height="110" loading="lazy" sandbox="allow-popups allow-scripts allow-same-origin" src="https://www.xiami.com/webapp/embed-player?autoPlay=1&id=1817781114"></iframe>
视频
- 视频添加(mp4视频)
<video id="video" controls="" preload="none" poster="http://img.blog.fandong.me/2017-08-26-Markdown-Advance-Video.jpg"><source id="mp4" src="http://img.blog.fandong.me/2017-08-26-Markdown-Advance-Video.mp4" type="video/mp4"></video>
- 视频添加(bilibili)——外链添加http协议
<iframe src="http://player.bilibili.com/player.html?aid=6117110&cid=9931722&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>
720等不跳转——添加page=1&high_quality=1参数
<iframe src="http://player.bilibili.com/player.html?aid=56624562&cid=98925443&page=1&high_quality=1" width="900" height="650" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>
- 视频添加(其他)——通用的分享外链即可
<iframe width="720" height="405" frameborder="0" src="https://v.qq.com/txp/iframe/player.html?vid=q3049j2v8f5" allowFullScreen="true"></iframe>
> width="720" height="405" 调节视频大小 allowFullScreen="true" 自动播放设置
本地(改变src文件目录,使用绝对路径)
<iframe width="720" height="405" frameborder="0" src="E:\Notable\notes\THIS.mp4
" allowFullScreen="true"></iframe>