YLRecordingVideo 0.1.4

YLRecordingVideo 0.1.4

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Feb 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by hoggenw.



  • By
  • hoggenw

YLRecordingVideo

Example

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

Requirements

Installation

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

pod "YLRecordingVideo"

Author

hoggenw

使用方法

        //管理初始化
        let manager = YLRecordVideoManager.shareManager()
        //结果代理
        manager.delegate = self
        //选择质量模式(可不选)
        manager.videoQuality = .normalQuality
        //设置录制时间(默认10秒,可不选)
        manager.recordTotalTime = 10
        //展示录制页面
        manager.showRecordView(viewController: self)

结果返回代理

extension ViewController: YLRecordVideoChoiceDelegate {
    func choiceVideoWith(path: String) {
        print("选择视频路径为:\(path)")
    }
}

License

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