video取第一帧图片
在video路径后面加?vframe/jpg/offset/0
例:
<template>
<view>
<image :src="`${path}?vframe/jpg/offset/0`"></image>
</view>
</template>
export default {
data() {
return {
path: "...../a.mp4"
}
}
}
参考地址:https://blog.csdn.net/m0_55595611/article/details/123080574
↓↓↓ 各位大佬点点赞
0 个评论
要回复文章请先登录或注册