video html5: Is it possible to display thumbnail from video on a specific time?

前端 未结 5 1435
我寻月下人不归
我寻月下人不归 2020-12-06 02:32

I use this to have a video player on browser

5条回答
  •  感动是毒
    2020-12-06 02:50

    Using the poster attribute is the easiest way to go. Getting a preview image of the video from a time other than the start is exactly what its designed for.

    http://www.w3schools.com/tags/att_video_poster.asp

    Trying to create a function to dynamically grab another segment of the video to use as the poster will undoubtedly create more latency and overhead for the client, negatively affecting the UX.

提交回复
热议问题