Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Video] 插入网络视频 #4

Open
kurisaW opened this issue Apr 12, 2023 · 0 comments
Open

[Video] 插入网络视频 #4

kurisaW opened this issue Apr 12, 2023 · 0 comments

Comments

@kurisaW
Copy link
Owner

kurisaW commented Apr 12, 2023

嵌入哔哩哔哩视频。

{{< bilibili VIDEO_ID PART_NUMBER >}}

Video_ID:在视频的URL中可以找到。
例如https://www.bilibili.com/video/av12345678为`av12345678`。AV和均受BV支持。

PART_NUMBER是可选的。它可用于指定要播放的视频部分。例如,零件号https://www.bilibili.com/video/av12345678?p=2是2。

嵌入YouTube视频。

{{< youtube VIDEO_ID >}}

Video_ID:在视频的URL中可以找到。例如视频IDhttps://www.youtube.com/watch?v=VIDEO_ID为VIDEO_ID。

嵌入通用视频文件

{{< video VIDEO_URL >}}

{{< video src="VIDEO_URL" autoplay="true" poster="./video-poster.png" >}}

VIDEO_URL可以是一个URL或相对于静态目录的一个路径。例如,src="/video/my-video.mp4 "将嵌入您网站文件夹的视频文件static/video/my-video.mp4。

自动播放属性是可选的。它可以用来指定视频是否应该被自动播放。海报属性是可选的。它可以用来指定视频的海报图像。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant