fix: VideoPlayer去掉cheight改用autoplay
This commit is contained in:
parent
b86883c1f8
commit
590fa48fbc
@ -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"}})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user