简体   繁体   中英

How can different screenshots of a HTML5 video be taken using JavaScript?

I have been working with the HTML5 video tag and I want to achieve one thing, I need a number of screenshots of different parts of the video presented at the same time, like a set of thumbnails below the original video.

So far, I have tried with various methods that I have found online, but no success so far.

What I want to achieve is something like this: http://open.bbc.co.uk/rad/demos/html5/rdtv/episode2/index.html

Any help would be appreciated, thanks in advance.

Have you tried "javaScript canvas snapshot"?

http://html2canvas.hertzen.com/

Can you take a "screenshot" of the page using Canvas?

Using HTML5/Canvas/JavaScript to take screenshots

There are also "headless webkit browsers" if you want to this semi-automatically on your desktop &/or server with Node.jx

This is not possible. You cannot access the data in the video stream to get the screenshots out from JavaScript. You'll have to do this server-side.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM