1👍
Try this.
onVideoDecode: (decoder, time) => {
var image = new Image()
var currentFrameData = player.options.canvas.toDataURL('image/webp', 0.7)
image.src = currentFrameData
image.onload = () => {
ctx.drawImage(image, 0, 0, canvas.width, canvas.height)
}
}
Source:stackexchange.com