SCCameraKitAVSessionInput
Objective-C
@interface SCCameraKitAVSessionInput : NSObject <SCCameraKitInput>
Swift
class AVSessionInput : NSObject
AVSessionInput is a CameraKit provided wrapper for AVCaptureSession. It may make adjustments to things like color formats in order to process frames. You are still responsible for doing the general configuration of the capture session, such as adding devices.
-
Describes whether the current video frames are mirrored
Declaration
Objective-C
@property (nonatomic) BOOL videoMirrored;
Swift
var videoMirrored: Bool { get set }
-
Describes whether it should automatically configure outputted video frames to be mirrored. If set to YES - it will update the
videoMirrored
property based on input device position (front is mirrored, back is not)Note
By default this property is set to YES, you can change it while the session is running and it will update the future video framesNote
If you change this property to NO, make sure you also changevideoMirrored
property as wellSee
videoMirrored
Declaration
Objective-C
@property (nonatomic) BOOL automaticallyConfiguresVideoMirrored;
Swift
var automaticallyConfiguresVideoMirrored: Bool { get set }
-
Determines whether or not this input will capture audio and pass audio buffer data to CameraKit. If YES then it will automatically configure a capture session, audio input device, etc. and start capturing data. If NO then no audio data will be captured.
Declaration
Objective-C
@property (nonatomic) BOOL audioEnabled;
Swift
var audioEnabled: Bool { get set }
-
Create an AV Session input.
Declaration
Objective-C
- (nonnull instancetype)initWithSession:(nonnull AVCaptureSession *)session;
Swift
init(session: AVCaptureSession)
Parameters
session
the AVCaptureSession to use.
-
Create an AV Session input.
Declaration
Objective-C
- (nonnull instancetype)initWithSession:(nonnull AVCaptureSession *)session audioEnabled:(BOOL)audioEnabled;
Swift
init(session: AVCaptureSession, audioEnabled: Bool)
Parameters
session
The AVCaptureSession to use.
audioEnabled
Determines whether or not this input will capture audio and pass audio buffer data to CameraKit. Default is YES.