DEV Community

Discussion on: Javascript: html2canvas with videos

 
protium profile image
protium

Hi Rex. I had no idea but there are many factors to check:

  • video encoding
  • the video is loaded locally?
  • trying with another video
  • trying without videoJS
  • check if video metadata is loaded correctly (height, width)

I hope you find what's is going on an we can update this post.

Regards

Thread Thread
 
rexn8r profile image
rexn8r

Tried different video files, video files are stored in local sdcard and rendered from there. metadata are loaded, can see correct width and height of the video. can see HTMLVideoElement in the web console, tried without videoJS (i have been using videoJS cause it allows to play video without touch interaction). No luck whatsoever.

are you using plain video element in your code? if so how do u auto play the element? or you play the video with control and then capture it?

thanks
rex