Capture snapshot image from video
Video snapshot is an option built-in in the Nuevo plugin. If enabled, the snapshot button is located right before the fullscreen button. By clicking the button, you can capture an image from a video at the current time. The size of the captured image is equal to the currently playing video (not a player). Only on a mobile device, the width of the captured image is limited to 600px.The default image type is .jpg (0.9 compression quality). You can change it to .png using the appropriate option. To enable the snapshot button, you need to set the appropriate Nuevo option.
Code snippet
const player = videojs("my_player",{license: "key"});player.nuevo({ snapshot:true });Code snippet
const player = videojs("my_player",{license: "key"});player.nuevo({ snapshot:true, snapshotType: "png" });Code snippet
const player = videojs("my_player",{license: "key"});player.nuevo({ snapshot:true, snapshotWatermark: "Domain.com" });