w0bm.com v1.5z FULL.RETARD.BUILD.BUT.STILL.WORKS

This commit is contained in:
noxy
2019-08-26 16:58:26 +00:00
commit da71b95aa2
517 changed files with 143236 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
window.onload = function (){
var video = document.getElementById('video_html5_api');
var thecanvas = document.getElementById('thecanvas');
var img = document.getElementById('thumbnail_img');
video.addEventListener('pause', function(){
draw( video, thecanvas, img);
}, false);
};
function draw( video, thecanvas, img ){
img.setAttribute('crossOrigin', 'anonymous');
var context = thecanvas.getContext('2d');
context.drawImage( video, 0, 0, thecanvas.width, thecanvas.height);
var dataURL = thecanvas.toDataURL();
img.setAttribute('src', dataURL);
video.setAttribute('crossOrigin', 'anonymous');
}