1
2
3
4
5
6
7
8
9
10
11
12
| <video src="/videos/flying-clouds-720p.mp4" controls></video>
<video src="https://什么什么什么.mp4" controls></video>
直接去B站官网的分享复制过来就好了。
<iframe src="//player.bilibili.com/player.html?aid=722172760&bvid=BV1cS4y1977N&cid=455126782&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>
获取src后,嵌入下述自适应代码即可。
$ BILIBILI 地址PC端参数
&high_quality=1 (1=最高画质 0=最低画质)
&danmaku=1 (1=打开弹幕 0=关闭弹幕)
$ iframe 参数
allowfullscreen="allowfullscreen" #移动端全屏
sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts" #禁止弹出网页
<iframe src="//player.bilibili.com/player.html?aid=722172760&bvid=BV1cS4y1977N&cid=455126782&page=1&high_quality=1&danmaku=1" allowfullscreen="allowfullscreen" width="100%" height="500" scrolling="no" frameborder="0" sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts"></iframe>
|