1.0.3 • Published 8 years ago

videothumbhtml5 v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

Video Thumb Html 5

This npm create a thumb client side from a video (mp4/wbm/DASH) all in html5

Compatibilities

npm install videothumbhtml5

Compatibilities

  1. Firefox
  2. Chrome
  3. IE TBD

Method

thumbVideoFactory is in window.thumbVideoFactory

thumbVideoFactory.getThumb(videosURL, time in second, callback)

Param

  1. Video url (mp4 or Dash)
  2. Time to get thumbnail in second
  3. Callback (imageData)
thumbVideoFactory.getThumb("http://example.com/video.mp4",60, function (imgData) {
	document.getElementById('canvasImg4').src = imgData;
});