VerIDVideoWriterService
@objc
public class VerIDVideoWriterService : NSObject, VideoWriterService
Ver-ID SDK’s implementation of the VideoWriterService protocol
-
Write a sample buffer as a video frame
Declaration
Swift
public func writeSampleBuffer(_ sampleBuffer: CMSampleBuffer, rotation: CGFloat)Parameters
sampleBufferSample buffer to write
rotationRotation of the frame in degrees
-
Finish writing the video file
Declaration
Swift
public func finish(completionBlock: @escaping (URL?) -> Void)Parameters
completionBlockCallback that will be invoked when the file is written or if the writing fails
VerIDVideoWriterService Class Reference