Latest 1.0.1
Homepage https://github.com/zzltjnh/KeyframePicker
License MIT
Platforms ios 8.0
Authors

Keyframe image generateor and picker from a video like iPhone photo library written in Swift.

Example

KeyframePicker

To run the example project, clone the repo, open KeyframePicker.xcworkspace from root directory.

Requirements

  • iOS 8.0+
  • Xcode 8.0
  • Swift 3.0

Installation

KeyframePicker is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'KeyframePicker'

Usage

import KeyframePicker
//create
let keyframePicker = KeyframePickerViewController.create()

// set `asset` if your video from photolibrary or camera
// set `videoPath` if your video from sand box or remote
keyframePicker.asset = yourAvAsset

// set handler
keyframePicker.generatedKeyframeImageHandler = { [weak self] image in
    if let image = image {
        print("generate image success")
        //do something with image
    } else {
        print("generate image failed")
    }
}

// show
navigationController?.pushViewController(keyframePicker, animated: true)

Author

Zhilong Zhang,Tianjin China, [email protected]

License

KeyframePicker is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "KeyframePicker",
    "version": "1.0.1",
    "summary": "Keyframe image generateor and picker from a video like iPhone photo library written in Swift.",
    "homepage": "https://github.com/zzltjnh/KeyframePicker",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "zzltjnh": "[email protected]"
    },
    "source": {
        "git": "https://github.com/zzltjnh/KeyframePicker.git",
        "tag": "1.0.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "source/**/*.swift",
    "resources": [
        "source/**/*.storyboard",
        "Resources/images.xcassets"
    ],
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This