feat: prevent BiliBili autoplay to respect web standards

Also, remove BiliBili demo due to very slow loading outside China
This commit is contained in:
George Cushen committed 2025-08-19 01:13:22 +01:00
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>