Display canvas as gif for video preview
问题 I'm working on a website and I am dealing with videos. My need is to display a gif a a preview / teaser for the videos on another page, that redirects to the video. What I found & added so far HTML <div id=thumbs></div> CSS #video {width:320px} JS var i =0; var video = document.createElement("video"); var thumbs = document.getElementById("thumbs"); video.addEventListener('loadeddata', function() { thumbs.innerHTML = ""; video.currentTime = i; }, false); video.addEventListener('seeked',