VKRecorderViewController
@objc
open class VKRecorderViewController : UIViewController
extension VKRecorderViewController: VKCountdownTimerDelegate
extension VKRecorderViewController: VKImagePickerDelegate
extension VKRecorderViewController: VKHorizontalPickerDataSource
extension VKRecorderViewController: VKHorizontalPickerDelegate
extension VKRecorderViewController: VKRecorderDelegate
extension VKRecorderViewController: VKRecorderDeviceDelegate
extension VKRecorderViewController: VKRecorderFlashAndTorchDelegate
extension VKRecorderViewController: VKRecorderVideoDelegate
Recorder View Controller.
-
Optionally set a
VKRecorderViewControllerDelegate
Declaration
Swift
public var delegate: VKRecorderViewControllerDelegate?
-
Optionally set a
VKRecorderDelegate
Declaration
Swift
public var recorderDelegate: VKRecorderDelegate?
-
The dataSource is used to customize the default behaviour as well as look and feel of
VKRecorderViewController
.Set to an instance of
VKRecorderViewControllerDataSource
, defaults toVKRecorderViewControllerDefaultDataSource
Declaration
Swift
public var dataSource: VKRecorderViewControllerDataSource
-
Declaration
Swift
public var recordingTime: TimeInterval { get set }
-
Declaration
Swift
public var countdownTimer: VKCountdownTimerView
-
Back button to remove the last clip that was taken.
Declaration
Swift
public var removeButton: UIButton
-
Button to select a video from photo library.
Declaration
Swift
public var photoLibaryButton: UIButton
-
Flip camera
Declaration
Swift
public var flipCameraButton: UIButton
-
Declaration
Swift
public var bottomBackgroundView: UIView
-
Picker to choose current maximum recording time
Declaration
Swift
public var timeSelector: VKHorizontalPicker
-
Declaration
Swift
public var vkRecorder: VKRecorder
-
Starts recording a new clip
Declaration
Swift
public func startRecordingSession(_ force: Bool = false)
Parameters
force
Bool Forces the recording session to start
-
Stops the recording a currently running session
Declaration
Swift
public func pauseRecordingSession()
-
Resets capture back to 0 and removes all clips
Declaration
Swift
public func resetCapture()
-
Declaration
Swift
public func timerDidStart(sender: VKCountdownTimerView)
-
Declaration
Swift
public func timerDidEnd(sender: VKCountdownTimerView, elapsedTime: TimeInterval)
-
Declaration
Swift
public func timerDidUpdateCounterValue(sender: VKCountdownTimerView, newValue: Int)
-
Declaration
Swift
public func didSelect(image: UIImage?)
-
Declaration
Swift
public func didSelectVideo(url: URL?)
-
Shows a spinner inside of given view
Declaration
Swift
public func showSpinner(onView: UIView)
-
Declaration
Swift
public func removeSpinner()
-
Override setupImages to set images for the following buttons:
nextButton
,flashButton
,timerButton
,backButton
,removeButton
,photoLibaryButton
,flipCameraButton
Example:
self.nextButton.setImage(UIImage(named: "NextButton", in: viewBundle, compatibleWith: nil), for: .normal)
Declaration
Swift
open func setupImages()
-
Hides all buttons and controls
Declaration
Swift
public func hideAllControlsForRecordingMode()
-
Shows all buttons and controls
Declaration
Swift
public func showAllControls()
-
Declaration
Swift
open override func viewDidLoad()
-
Declaration
Swift
open override func viewDidLayoutSubviews()
-
Declaration
Swift
open override func viewWillAppear(_ animated: Bool)
-
Declaration
Swift
open override func viewWillDisappear(_ animated: Bool)
-
Declaration
Swift
open func numberOfItemsInPickerView(_ pickerView: VKHorizontalPicker) -> Int
-
Declaration
Swift
open func pickerView(_ pickerView: VKHorizontalPicker, titleForItem item: Int) -> String
-
Declaration
Swift
open func pickerView(_ pickerView: VKHorizontalPicker, didSelectItem item: Int)
-
Declaration
Swift
@objc open func vkRecorderDidFinishUploadWhileRecording(_ video: VKVideo, _ session: VKRecorderSession)
-
Declaration
Swift
final public func vkRecorderDidFinishAutoMerge(_ url: URL, _ session: VKRecorderSession)
-
Declaration
Swift
final public func vkRecorderDidFinishAutoMergeWithError(_ error: Error, _ session: VKRecorderSession)
-
Declaration
Swift
@objc open func vkRecorder(_ vkRecorder: VKRecorder, didUpdateVideoConfiguration videoConfiguration: VKRecorderVideoConfiguration)
-
Declaration
Swift
@objc open func vkRecorder(_ vkRecorder: VKRecorder, didUpdateAudioConfiguration audioConfiguration: VKRecorderAudioConfiguration)
-
Declaration
Swift
@objc open func vkRecorderSessionWillStart(_ vkRecorder: VKRecorder)
-
Declaration
Swift
@objc open func vkRecorderSessionDidStart(_ vkRecorder: VKRecorder)
-
Declaration
Swift
@objc open func vkRecorderSessionDidStop(_ vkRecorder: VKRecorder)
-
Declaration
Swift
@objc open func vkRecorderSessionWasInterrupted(_ vkRecorder: VKRecorder)
-
Declaration
Swift
@objc open func vkRecorderSessionInterruptionEnded(_ vkRecorder: VKRecorder)
-
Declaration
Swift
@objc open func vkRecorderCaptureModeWillChange(_ vkRecorder: VKRecorder)
-
Declaration
Swift
@objc open func vkRecorderCaptureModeDidChange(_ vkRecorder: VKRecorder)
-
Declaration
Swift
public func vkRecorder(_ vkRecorder: VKRecorder, didChangeLensPosition lensPosition: Float)
-
Declaration
Swift
public func vkRecorder(_ vkRecorder: VKRecorder, didChangeCleanAperture cleanAperture: CGRect)
-
Declaration
Swift
public func vkRecorderDevicePositionWillChange(_ vkRecorder: VKRecorder)
-
Declaration
Swift
public func vkRecorderDevicePositionDidChange(_ vkRecorder: VKRecorder)
-
Declaration
Swift
public func vkRecorder(_ vkRecorder: VKRecorder, didChangeDeviceOrientation deviceOrientation: AVCaptureVideoOrientation)
-
Declaration
Swift
public func vkRecorder(_ vkRecorder: VKRecorder, didChangeDeviceFormat deviceFormat: AVCaptureDevice.Format)
-
Declaration
Swift
public func vkRecorderDidStopFocus(_ vkRecorder: VKRecorder)
-
Declaration
Swift
public func vkRecorderDidChangeExposure(_ vkRecorder: VKRecorder)
-
Declaration
Swift
public func vkRecorderWillStartFocus(_ vkRecorder: VKRecorder)
-
Declaration
Swift
public func vkRecorderWillChangeExposure(_ vkRecorder: VKRecorder)
-
Declaration
Swift
public func vkRecorderWillChangeWhiteBalance(_ vkRecorder: VKRecorder)
-
Declaration
Swift
public func vkRecorderDidChangeWhiteBalance(_ vkRecorder: VKRecorder)
-
Declaration
Swift
public func vkRecorderDidChangeFlashMode(_ vkRecorder: VKRecorder)
-
Declaration
Swift
public func vkRecorderDidChangeTorchMode(_ vkRecorder: VKRecorder)
-
Declaration
Swift
public func vkRecorderFlashActiveChanged(_ vkRecorder: VKRecorder)
-
Declaration
Swift
public func vkRecorderTorchActiveChanged(_ vkRecorder: VKRecorder)
-
Declaration
Swift
public func vkRecorderFlashAndTorchAvailabilityChanged(_ vkRecorder: VKRecorder)
-
Declaration
Swift
public func vkRecorder(_ vkRecorder: VKRecorder, didAppendVideoSampleBuffer sampleBuffer: CMSampleBuffer, inSession session: VKRecorderSession)
-
Declaration
Swift
public func vkRecorder(_ vkRecorder: VKRecorder, didSkipVideoSampleBuffer sampleBuffer: CMSampleBuffer, inSession session: VKRecorderSession)
-
Declaration
Swift
public func vkRecorder(_ vkRecorder: VKRecorder, didAppendVideoPixelBuffer pixelBuffer: CVPixelBuffer, timestamp: TimeInterval, inSession session: VKRecorderSession)
-
Declaration
Swift
public func vkRecorder(_ vkRecorder: VKRecorder, didCompleteSession session: VKRecorderSession)
-
Declaration
Swift
public func vkRecorder(_ vkRecorder: VKRecorder, didCompleteClip clip: VKRecorderClip, inSession session: VKRecorderSession)
-
Declaration
Swift
@objc public func selectFromCameraRoll()