virajpsimformsolutions / TLStoryCamera

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TLStoryCamera

TODO

  • Fix bugs

Introduce

  • 仿照instagramStory & WeiBoStory。可以在拍摄视频后贴图,贴字,涂鸦。
  • You can put up picture, text or doodle after shooting a video. just like the app Instagram and Weibo 's story

Requirements

  • iOS 8.0 or later
  • Xcode 8.0 or later

Character

  • 基本实现WeiboStory的大部分功能
  • Implement most of the function of Weibo's story
  • 支持滑动切换滤镜
  • Support slide filter
  • 支持码率,美颜开关等多项配置
  • Support config kpbs, beautifyFilter
  • 支持长按录像&短按拍照
  • Support long press to shoot a video or short press to take a photo
  • 支持相册选择图片&视频
  • Support import video or photo from album
  • 使用Swift 3开发
  • Using Swift3

Depend on framwork

  • GPUImage
  • MBProgressHUD

Usage

  • 克隆项目后,需要使用Cocoapods Install
  • Using CocoaPods to install after cloning the project
let storyVc = TLStoryViewController()
storyVc.view.frame = CGRect.init(x: 0, y: -44, width: screenWidth, height: screenHeight)
storyVc.delegate = self
scrollView.addSubview(storyVc.view)
self.addChildViewController(storyVc)

extension ViewController:TLStoryViewDelegate {
    func storyViewClose() {
    }
    
    func storyViewRecording(running complete: Bool) {
    
    }
     
    //get output video & photo
    func storyViewDidPublish(type: TLStoryType, url: URL?) {
        guard let u = url else {
            return
        }
        print("\(type)-----\(u)")
    }
}

FAQ

Warning!

  • 项目部分图片素材来自WeiBo,请替换后使用!
  • Partial resourse come frome Weibo, please use after replacing
  • 目前项目尚处于开发阶段,不建议直接在企业项目中使用。
  • Deprecated using in project directly cause of development stage

Images

About

License:MIT License


Languages

Language:Swift 89.3%Language:Objective-C 10.6%Language:Ruby 0.1%