feat(products): 成片库视频内联播放,去掉弹窗 + 自适应比例 #1576
Reference in New Issue
Block a user
Delete Branch "feat/product-inline-player"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
改动内容
去掉弹窗播放,改为内联播放
<img>+ 播放按钮覆盖层改为<video>元素controlsonEnded回到缩略图状态videoUrl加载失败自动降级为缩略图playingProduct状态和VideoPlayer弹窗组件引用消除视频空白
.xx-product-thumb去掉固定aspect-ratio: 9/16和max-height: 220pxonLoadedMetadata动态获取videoWidth/videoHeight,设置容器aspect-ratio16:9(横屏).xx-product-thumb-video样式:object-fit: contain,确保不裁剪未改动
🚀 预览环境已部署
🗑️ 预览环境已清理
PR #1576 已关闭或合并,对应的预览环境已被清理。