0

I have a problem with fetching first frame of html5 video. i tried with canvas. here my code

var canvas = document.getElementById('canvas');
var video = document.getElementById('video');
canvas.getContext('2d').drawImage(video, 0, 0, video.videoWidth, video.videoHeight);
canvas.href = canvas.toDataURL();
canvas.download = "myimg.png";

i drawn the result. thats fine. but now my problem is i want to save result( that drawn image) directly into folder. Also i can't able to convert canvas image to URL format using DataURL()

erova
  • 11
  • 4

0 Answers0