FANDOM


The bilibili website has recently modified the video identification code from AV to BV. The script author is working on making new videos available for embedding.

BilibiliVideo is a script that can let you add H5 VideoPlayer(video with danmaku) on the page for video from bilibili.com (What is bilibili?).

Note: This script cannot display Bilibili videos that require logging in, and will show a short error video instead. Such videos are generally restricted by copyright and are only allowed to be viewed in mainland China.

Installation

Usage

Code

<div class="BiliVideo" data-av="AV number" data-param="video param" data-size="player width"></div>
  • data-av: AV number of video.General at the end of the url. Only number
  • data-param: Param of video.If the video has only one param, leave it blank. Only number
  • data-size: Width of player.Height will be adjusted automatically.Number ending with % or px
  • ☆You'd better add some text include the div block for mobile users like:<div class="BiliVideo" data-av="123" data-param="1" data-size="100%">[https://bilibili.com/av123 Watch this video]</div>.Text will not display for oasis skin.

Example

If you want to show まふまふ‘s 病名は愛だった from https://bilibili.com/video/av14661594
<div class="BiliVideo" data-av="14661594" data-param="" data-size="80%"></div>

See effect in infobox or here.

See also template:

Text above can be found here (edit)
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+