1.0.1 • Published 6 years ago

cordova-library-helper-pp-fork v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

cordova-library-helper

Library Helper is a cordova plugin to help insert videos or images into the native gallery. Also can get duration and thumbnails from a video path. Supports IOS and Android

Install

cordova plugin add https://github.com/FlyingDonkeyDev/cordova-library-helper.git

Usage

Save Photo to Camera Roll

LibraryHelper.saveImageToLibrary(onSuccess, onError, path, albumName); 

Save Video to Camera Roll

LibraryHelper.saveVideoToLibrary(onSuccess, onError, path, videoName (Only found in android));

Get Thumbnail and Duration

    LibraryHelper.getVideoInfo(onSuccess, onError, path);
    
    function onSuccess(results) {
        console.log("Duration: " + results.duration); 
        console.log("Thumbnail path on disk: " + results.thumbnail);
    }

Change Log

27/04/2016 - Added the ability to get video thumbnails and duration for Android.

22/10/2015 - Added the ability to get video thumbnails and duration.

26/11/2014 - Converted plugin to use cordova 3.x+

13/11/2012 - Optional Callbacks

14/11/2012 - Added the ability to add assets to IOS albums

Author: Cory Thompson (http://coryjthompson.com)

License: http://www.opensource.org/licenses/mit-license.php The MIT License