html5 - 如何在video显示第一帧
阿神
阿神 2017-04-17 13:42:44
0
2
1012
阿神
阿神

闭关修行中......

reply all(2)
大家讲道理

poster attribute
In addition, some models of mobile phones do not support it, and ios needs to click to get the first frame.
You can put an img on the video, and then put the poster's url in the img yourself. After the video is loaded, it will be displayed and the img can be hidden.
Another method is to play the video by default, so you don't need to think about it. Whether to display the first frame.

刘奇
<video controls="controls" preload="auto" id="video"></video>

Upload successful callback

function(videoUrl){
    $('#video').attr('src',videoUrl);
}

Try using the preload attribute of video

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!