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
sampleBuffer
Sample buffer to write
rotation
Rotation of the frame in degrees
-
Finish writing the video file
Declaration
Swift
public func finish(completionBlock: @escaping (URL?) -> Void)
Parameters
completionBlock
Callback that will be invoked when the file is written or if the writing fails