mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 16:15:12 +00:00
feat: prevent BiliBili autoplay to respect web standards
Also, remove BiliBili demo due to very slow loading outside China
This commit is contained in:
1 parent
108fdcfe53
commit
fc3e52b68f
3 files changed
+1
-3
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{{- $video_id := cond .IsNamedParams (.Get `id`) (.Get 0) -}}
|
||||
{{- $video_page := (cond .IsNamedParams (.Get `p`) (.Get 1)) | default 1 -}}
|
||||
<div class="w-full h-auto aspect-video relative">
|
||||
<iframe src="//player.bilibili.com/player.html?bvid={{ $video_id }}&page={{ $video_page }}"
|
||||
<iframe src="//player.bilibili.com/player.html?bvid={{ $video_id }}&page={{ $video_page }}&autoplay=0"
|
||||
allow="accelerometer; clipboard-write; encrypted-media; gyroscope; fullscreen; picture-in-picture;"
|
||||
class="w-full h-full"
|
||||
></iframe>
|
||||
|
||||
@@ -43,7 +43,6 @@ Teach your course by sharing videos with your students. Choose from one of the f
|
||||
|
||||
{{</* bilibili BV1WV4y1r7DF */>}}
|
||||
|
||||
{{< bilibili BV1WV4y1r7DF >}}
|
||||
|
||||
**Video file**
|
||||
|
||||
|
||||
@@ -33,7 +33,6 @@ Teach your course by sharing videos with your students. Choose from one of the f
|
||||
|
||||
{{</* bilibili BV1WV4y1r7DF */>}}
|
||||
|
||||
{{< bilibili BV1WV4y1r7DF >}}
|
||||
|
||||
**Video file**
|
||||
|
||||
|
||||
Reference in new issue
Block a user