有时候我们的视频需要在播放前,先加载一张视频的缩略图。
HTM代码如下
<video id="video" width="450" height="358" muted="muted" controls="controls" poster="/Info/image/play4.png"> <source src="/Info/image/video2021.mp4" type="video/mp4"></source> </video>
效果如下: