Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to set thumbnail for videos in javascript

//and code
function capture(){
    var canvas = document.getElementById('canvas');
    var video = document.getElementById('video');
    canvas.getContext('2d').drawImage(video, 0, 0, video.videoWidth, video.videoHeight);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #thumbnail #videos #javascript
ADD COMMENT
Topic
Name
8+6 =