Latest 0.1.0
Homepage https://github.com/QiuDaniel/QDLivePhotoKit
License MIT
Platforms ios 9.1, requires ARC
Authors

Generate Live Photo from mp4 file

Installation

CocoaPods

The preferred installation method is with CocoaPods. Add the following to your Podfile:

pod 'QDLivePhotoKit', '~> 0.1.0'

Usage

Get the file as AVURLAsset

[[QDLivePhotoManager sharedManager] saveLivePhotoWithAsset:urlAsset completionHandler:^(BOOL success) {

    if (success) {
        NSLog(@"success");

    } else {
        NSLog(@"fail");
    }
}];

Get the file path

you must have the authority to access the file with path

[[QDLivePhotoManager sharedManager] saveLivePhotoWithPath:path completionHandler:^(BOOL success) {

    if (success) {
        NSLog(@"success");

    } else {
        NSLog(@"fail");
    }
}];

Requirements

iOS9.1 or later. Requires ARC

License

QDLivePhotoKit is released under the MIT license. See LICENSE for details.

Latest podspec

{
    "name": "QDLivePhotoKit",
    "version": "0.1.0",
    "summary": "Generate Live Photo from mp4 file.",
    "homepage": "https://github.com/QiuDaniel/QDLivePhotoKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "qiudan": "[email protected]"
    },
    "source": {
        "git": "https://github.com/QiuDaniel/QDLivePhotoKit.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "9.1"
    },
    "requires_arc": true,
    "source_files": "QDLivePhotoKit/*.{h,m}"
}

Pin It on Pinterest

Share This