The bilibili shortcode embeds a responsive video player for bilibili videos.
Usages
When the video only has one part, only the BV id of the video is required, e.g.:
1
| https://www.bilibili.com/video/BV19S411c7Wu
|
Example bilibili input:
1
2
3
| {{< bilibili BV19S411c7Wu >}}
Or
{{< bilibili id=BV19S411c7Wu >}}
|
The rendered output looks like this:
When the video has multiple parts, in addition to the BV id of the video,
p is also required, whose default value is 1, e.g.:
1
| https://www.bilibili.com/video/BV1kt411k7Rq?p=3
|
Example bilibili input with p:
1
2
3
| {{< bilibili BV1kt411k7Rq 3 >}}
Or
{{< bilibili id=BV1kt411k7Rq p=3 >}}
|
The rendered output looks like this:
Options
The bilibili shortcode has the following named parameters:
id [required] (first positional parameter)
The BV id of the video.
p [optional] (second positional parameter)
Number of episodes of multi-P videos. Counting starts from 1, default value is 1.
autoplay [optional] 
Whether to autoplay, default value is false.
poster [optional] 
Whether to show the poster, default value is true.
muted [optional] 
Whether to mute, default value is false.
danmaku [optional] 
Whether to enable danmaku, default value is true.
t [optional] 
Jump to the initial time point of the media, default value is 0, unit: second.