SWCameraController

class SWCameraController : NSObject

Undocumented

  • Undocumented

    Declaration

    Swift

    var captureSession: AVCaptureSession?
  • Undocumented

    Declaration

    Swift

    var currentCameraPosition: SWCameraController.CameraPosition
  • Undocumented

    Declaration

    Swift

    var frontCamera: AVCaptureDevice?
  • Undocumented

    Declaration

    Swift

    var frontCameraInput: AVCaptureDeviceInput?
  • Undocumented

    Declaration

    Swift

    var videoOutput: AVCaptureVideoDataOutput!
  • Undocumented

    Declaration

    Swift

    var stillCameraOutput: AVCaptureStillImageOutput!
  • Undocumented

    Declaration

    Swift

    var rearCamera: AVCaptureDevice?
  • Undocumented

    Declaration

    Swift

    var rearCameraInput: AVCaptureDeviceInput?
  • Undocumented

    Declaration

    Swift

    var audioDeviceInput: AVCaptureDeviceInput?
  • Undocumented

    Declaration

    Swift

    var previewLayer: AVCaptureVideoPreviewLayer?
  • Undocumented

    Declaration

    Swift

    var flashMode: AVCaptureDevice.FlashMode
  • Undocumented

    Declaration

    Swift

    var videoWriterInput: AVAssetWriterInput!
  • Undocumented

    Declaration

    Swift

    var videoWriter: AVAssetWriter!
  • Undocumented

    Declaration

    Swift

    var recordingTimer: Timer?
  • Undocumented

    Declaration

    Swift

    var recordTime: Int
  • Undocumented

    Declaration

    Swift

    var recordingStartTimeStamp: CMTime?
  • Undocumented

    Declaration

    Swift

    var lastRecordedTimeStamp: CMTime?
  • Undocumented

    Declaration

    Swift

    var screenshot: UIImage?
  • Undocumented

    Declaration

    Swift

    var isRecording: Bool
  • Undocumented

    Declaration

    Swift

    var photoCaptureCompletionBlock: ((UIImage?, Error?) -> Void)?
  • Undocumented

    Declaration

    Swift

    var videoCaptureCompletionBlock: ((URL?, Error?) -> Void)?
  • Calculate recording duration according to first and last recorded samples time stamps.

    Declaration

    Swift

    var currentRecordingDuration: Float64 { get }
  • Undocumented

    Declaration

    Swift

    func captureOutput(_ output: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection)