feat: Videos in Beitragsansicht autoplay (muted+loop+playsinline)
Quality Gate / 🛡️ Lint + Type Check + Tests (push) Failing after 14m58s
Quality Gate / 🛡️ Lint + Type Check + Tests (push) Failing after 14m58s
This commit is contained in:
@@ -4531,7 +4531,7 @@ def public_detail(sub_id: int):
|
||||
thumb = generate_video_thumbnail(path)
|
||||
poster = f' poster="/media/{os.path.basename(thumb)}"' if thumb else ""
|
||||
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>'
|
||||
)
|
||||
elif mime.startswith("audio/"):
|
||||
|
||||
+1
-1
@@ -4682,7 +4682,7 @@ def public_detail(sub_id: int):
|
||||
thumb = generate_video_thumbnail(path)
|
||||
poster = f' poster="/media/{os.path.basename(thumb)}"' if thumb else ""
|
||||
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>'
|
||||
)
|
||||
elif mime.startswith("audio/"):
|
||||
|
||||
Reference in New Issue
Block a user