feat: Videos in Beitragsansicht autoplay (muted+loop+playsinline)
Quality Gate / 🛡️ Lint + Type Check + Tests (push) Failing after 14m58s

This commit is contained in:
Hermes Agent
2026-07-16 00:15:37 +02:00
parent af0af785ab
commit 5a50df7923
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -4531,7 +4531,7 @@ def public_detail(sub_id: int):
thumb = generate_video_thumbnail(path) thumb = generate_video_thumbnail(path)
poster = f' poster="/media/{os.path.basename(thumb)}"' if thumb else "" poster = f' poster="/media/{os.path.basename(thumb)}"' if thumb else ""
media_html += ( media_html += (
f'<video controls playsinline{poster} style="width:100%;max-height:80vh;border-radius:12px;margin:0.5rem 0;background:#000;">' f'<video controls autoplay loop muted playsinline{poster} style="width:100%;max-height:80vh;border-radius:12px;margin:0.5rem 0;background:#000;">'
f'<source src="{src}" type="{mime}"></video>' f'<source src="{src}" type="{mime}"></video>'
) )
elif mime.startswith("audio/"): elif mime.startswith("audio/"):
+1 -1
View File
@@ -4682,7 +4682,7 @@ def public_detail(sub_id: int):
thumb = generate_video_thumbnail(path) thumb = generate_video_thumbnail(path)
poster = f' poster="/media/{os.path.basename(thumb)}"' if thumb else "" poster = f' poster="/media/{os.path.basename(thumb)}"' if thumb else ""
media_html += ( media_html += (
f'<video controls playsinline{poster} style="width:100%;max-height:80vh;border-radius:12px;margin:0.5rem 0;background:#000;">' f'<video controls autoplay loop muted playsinline{poster} style="width:100%;max-height:80vh;border-radius:12px;margin:0.5rem 0;background:#000;">'
f'<source src="{src}" type="{mime}"></video>' f'<source src="{src}" type="{mime}"></video>'
) )
elif mime.startswith("audio/"): elif mime.startswith("audio/"):