Latest 0.1.1
Homepage https://github.com/xtzPioneer/TXVideoRecordingKit
License MIT
Platforms ios 8.0
Dependencies MGJRouterKit
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

使用方法

  • import "TXVideoRecordingKit.h" 即可使用

    
    /** 按钮事件 */
  • (void)buttonEvent:(id)sender{
    // 创建参数
    NSMutableDictionary parameters=[NSMutableDictionary dictionary];
    // 拍照完成后回调
    typedef void (^TXTakePhotosCompletionHandler) (NSError
    error,UIImage image);
    TXTakePhotosCompletionHandler takePhotosCompletionHandler=
    takePhotosCompletionHandler = ^(NSError
    error,UIImage image){
    if (!error) {
    NSLog(@"image:%@",image);
    }else{
    }
    };
    // 拍摄完成后回调
    typedef void (^TXShootCompletionHandler) (NSError
    error,NSURL videoUrl, CGFloat videoTimeLength, UIImage thumbnailImage);
    TXShootCompletionHandler shootCompletionHandler = ^(NSError error,NSURL videoUrl, CGFloat videoTimeLength, UIImage thumbnailImage){
    if (!error) {
    NSLog(@"thumbnailImage:%@",thumbnailImage);
    NSLog(@"videoTimeLength:%f",videoTimeLength);
    NSLog(@"videoUrl:%@",videoUrl);
    }else{
    }
    };
    // 设置参数
    [parameters setObject:takePhotosCompletionHandler forKey:@"takePhotosCompletionHandler"];
    [parameters setObject:shootCompletionHandler forKey:@"shootCompletionHandler"];
    // 打开方式1 URL
    [MGJRouter openURL:@"tx://present/videoRecording"
    withUserInfo:parameters
    completion:nil];
    /

    // 打开方式2 URL
    UIViewController vc=[MGJRouter objectForURL:@"tx://get/videoRecording" withUserInfo:parameters];
    [self presentViewController:vc animated:YES completion:nil];
    /

}


## Installation

TXVideoRecordingKit is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:

```ruby
pod 'TXVideoRecordingKit'

Author

xtz_pioneer, [email protected]

License

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

Latest podspec

{
    "name": "TXVideoRecordingKit",
    "version": "0.1.1",
    "summary": "u4effu5faeu4fe1u89c6u9891u5f55u5236u4ee5u53cau62cdu7167u529fu80fd,u5b8cu5168u89e3u8026u4f7fu7528u201cMGJRouterKitu201du4e2du7684openu65b9u6cd5u5373u53efu6253u5f00u6216u83b7u53d6u8be5u6a21u5757.",
    "description": "u4effu5faeu4fe1u89c6u9891u5f55u5236u4ee5u53cau62cdu7167u529fu80fd,u5b8cu5168u89e3u8026u4f7fu7528u201cMGJRouterKitu201du4e2du7684openu65b9u6cd5u5373u53efu6253u5f00u6216u83b7u53d6u8be5u6a21u5757,u4f7fu7528u7b80u5355u6613u61c2.",
    "homepage": "https://github.com/xtzPioneer/TXVideoRecordingKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "xtzPioneer": "[email protected]"
    },
    "source": {
        "git": "https://github.com/xtzPioneer/TXVideoRecordingKit.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "TXVideoRecordingKit/Classes/**/*.{h,m}",
    "dependencies": {
        "MGJRouterKit": []
    },
    "prefix_header_contents": "#import "TXVideoRecordingKit.h"",
    "resource_bundles": {
        "TXVideoRecordingKit": [
            "TXVideoRecordingKit/Classes/**/*.{png,xib}"
        ]
    }
}

Pin It on Pinterest

Share This