This npm create a thumb client side from a video (mp4/wbm/DASH) all in html5
Compatibilities
npm install videothumbhtml5
Compatibilities
- Firefox
- Chrome
- IE TBD
Method
thumbVideoFactory is in window.thumbVideoFactory
thumbVideoFactory.getThumb(videosURL, time in second, callback)
Param
-
Video url (mp4 or Dash)
-
Time to get thumbnail in second
-
Callback (imageData)
-
Options (videojs options) default {}
thumbVideoFactory.getThumb("http://example.com/video.mp4",60, function (imgData) { document.getElementById('canvasImg4').src = imgData; },options);