fix: VideoPlayer去掉cheight改用autoplay

This commit is contained in:
ymq 2026-08-12 11:15:05 +08:00
parent b86883c1f8
commit 590fa48fbc

View File

@ -250,7 +250,7 @@ else:
ext = h["file_ext"]
if ext in video_exts:
if media_url:
card_subwidgets.append({"widgettype": "VideoPlayer", "options": {"url": media_url, "width": "100%", "cheight": 18}})
card_subwidgets.append({"widgettype": "VideoPlayer", "options": {"url": media_url, "width": "100%", "autoplay": true}})
elif ext in audio_exts:
if media_url:
card_subwidgets.append({"widgettype": "Html", "options": {"html": "<audio controls preload=\"metadata\" style=\"width:100%\" src=\"" + media_url + "\"></audio>", "padding": "4px 0"}})