Skip to content

Latest commit

 

History

History
51 lines (41 loc) · 1.2 KB

README.md

File metadata and controls

51 lines (41 loc) · 1.2 KB

KVideoRecorder

iOS 11 Record Video & Take Photo Helper Class 📹

Use

        recorder = KVideoRecorder(to: self.view)
        recorder.setup(.video) // .video , .photo
Delegate
     extension mainVC: KVideoRecorderDelegate {
         func timer(second: Int) {
        // video second
        }
      }
Usable Functions
        recorder.record(name:)
        recorder.takePhoto()
        recorder.savePhoto(image:)
        recorder.saveVideo(url:)
        recorder.toggleCamera()
        recorder.isExist(name:)
        recorder.delete(name:)
        recorder.vidURL(name:)
        recorder.removeView()
Usable Veriables
        recorder.isAuth:Bool
        recorder.isFocus:Bool
        recorder.isZoom:Bool
        recorder.isToggle:Bool
        recorder.videoDelegate:AVCaptureFileOutputRecordingDelegate
        recorder.photoDelegate:AVCapturePhotoCaptureDelegate
        recorder.delegate:KVideoRecorderDelegate      
        recorder.takePhotoImage:UIImage
        recorder.videoOutputUrl:URL

License

Usage is provided under the MIT License. See LICENSE for the full details.