/WMVideo

仿微信录像和拍照,record Video and photo functions

Primary LanguageSwift

WMVideo

仿微信录像和拍照,record Video and photo functions exporter

源码地址

使用

        let vc = WMCameraViewController()
//        vc.inputType = .video
        vc.videoMaxLength = 20
        vc.completeBlock = { url, type in
            print("url == \(url)")
            //video
            if type == .video {
              //code
            }
            //image
            if type == .image {
                //code
                           
             }
        }
        present(vc, animated: true, completion: nil)

展示

image image image image