Video Thumbnailer

This will take a path to a video file and render a small thumbnail image of the video.
jbavari0.0.11
platforms: android
$ cordova plugin add org.apache.cordova.video-thumbnailer

This plugin was inspired from the previous owner from his Github repo:

https://github.com/maxbasmanov/PhoneGap_Thumbnailer

Supported Platforms

Android only (for the time)

Getting started on Android

  • cordova platform add android
  • cordova plugin add ../cordova-plugin-video-thumbnailer

Usage

If using the Cordova CLI (or plugman) to install the plugin, there will be a javascript variable available for you to use called 'thumbnailer'. You will usually call a create method with a file:// path to a video or image.

Thumbnail from an image:

thumbnailer.createImageThumbnail(path, callback);

Thumbnail from a video:

thumbnailer.createVideoThumbnail(path, callback);