SkillAgentSearch skills...

KVideoRecorder

iOS 11 Record Video & Take Photo Helper Class 📹

Install / Use

/learn @KenanAtmaca/KVideoRecorder
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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.

View on GitHub
GitHub Stars7
CategoryContent
Updated4y ago
Forks5

Languages

Swift

Security Score

75/100

Audited on Jul 27, 2021

No findings