修复web的poster

This commit is contained in:
moux1024 2025-10-14 22:44:54 +08:00
parent 8fdc91440b
commit f72e942a0b

View File

@ -614,7 +614,7 @@ export const MediaViewer = React.memo(function MediaViewer({
aspectRatio: aspectRatio
}}
src={taskObject.videos.data[currentSketchIndex].urls[0]}
poster={getFirstFrame(taskObject.videos.data[currentSketchIndex].urls[0])}
poster={taskObject.videos.data[currentSketchIndex].snapshot_url || getFirstFrame(taskObject.videos.data[currentSketchIndex].urls[0])}
preload="none"
autoPlay={isVideoPlaying}
loop={true}