uniapp 视频获取第一帧

1 <video :src="item.sp_url" :poster="" controls :show-center-play-btn="false" auto-pause-if-navigate></video>
2 //图片也可以用
3 <image class="zu_logo" :src="item.sp_url+ ‘?x-oss-process=video/snapshot,t_0,f_jpg‘" mode=""></image>
4 
5 //只需要在地址后面加这一段代码就可以了
6 ‘?x-oss-process=video/snapshot,t_0,f_jpg‘  //划重点

 

文章来自:https://www.cnblogs.com/8023-CHD/p/13690444.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3