SCCameraKitVideoAssetInput
Objective-C
@interface SCCameraKitVideoAssetInput : NSObject <SCCameraKitInput>
Swift
class VideoAssetInput : NSObject
VideoAssetInput is a Camera Kit provided input that uses a video asset as a source for generating audio/video sample buffers by playing it in a loop.
-
Creates a
VideoAssetInputinstance.Declaration
Objective-C
- (nonnull instancetype)initWithAsset:(nonnull AVAsset *)asset audioEnabled:(BOOL)audioEnabled;Swift
init(asset: AVAsset, audioEnabled: Bool) -
Unavailable
Undocumented
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE; -
The horizontal field of view for the input. Default is 70.0f.
Declaration
Objective-C
@property (nonatomic) CGFloat horizontalFieldOfView;Swift
var horizontalFieldOfView: CGFloat { get set }