GithubHelp home page GithubHelp logo

creativekodes / cordova-library-helper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from busivid/cordova-plugin-library-helper

0.0 2.0 0.0 24 KB

Library Helper is a cordova plugin to help insert videos or images into the native gallery. Supports IOS and Android

Java 25.87% Objective-C 70.95% JavaScript 3.18%

cordova-library-helper's Introduction

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 cordova-library-helper

Usage

Save Photo to Camera Roll

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

Save Video to Camera Roll

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

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

cordova-library-helper's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.