How to create thumbnails or preview for videos?

前端 未结 3 890
清歌不尽
清歌不尽 2020-12-03 01:54

i want to display thumbnails or preview panels for videos listed on my site, i want to fetch a single frame from a video (from a particular time i.e get a frame of exactly a

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-03 02:42

    In modern browsers you can also use the video tag and canvas to capture a frame and save it as an image.

    see How can we get the screenshot of the video in html5 using canvas

提交回复
热议问题