mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-11 12:11:45 +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>
|
||||
|
||||
Reference in new issue
Block a user