Video.js: Does videojs support capturing a snapshot?

Created on 25 Feb 2014  路  4Comments  路  Source: videojs/video.js

such as saving data to clipboard

question

Most helpful comment

player.tech(true).el() or player.$('video') should both work, with the first one being more explicit but depending upon the use of the HTML tech (which is the default).

All 4 comments

No, it doesn't. You may want to look into using the video element + canvas for that.

Its not possible with video.js player when trying to save an image using canvas. Error: "Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided value is not of type '(HTMLImageElement or HTMLVideoElement or HTMLCanvasElement or ImageBitmap)".

Video is not identified as "HTMLVideoElement". This is a basic use case and glad if you can mention a workaround.

@heff Hi, how to get video element from videojs object?

player.tech(true).el() or player.$('video') should both work, with the first one being more explicit but depending upon the use of the HTML tech (which is the default).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kitsunde picture kitsunde  路  4Comments

zhulduz picture zhulduz  路  3Comments

d3x7r0 picture d3x7r0  路  4Comments

aagiulian picture aagiulian  路  3Comments

TheKassaK picture TheKassaK  路  3Comments