LMSaveVideoServiceProtocol

Objective-C

@protocol LMSaveVideoServiceProtocol <NSObject>

Swift

protocol LMSaveVideoServiceProtocol : NSObjectProtocol

This service is intented to save frames one by one and after that flush it into one solid video file

  • reset current frames storage

    Declaration

    Objective-C

    - (void)beginRecordWithFileURL:(NSURL *)fileURL;

    Swift

    func beginRecord(withFileURL fileURL: URL!)
  • Append new frame into sequence for future flush into single video file

    Declaration

    Objective-C

    - (void)appendStorageWithSampleBuffer:(CMSampleBufferRef)sampleBuffer;

    Swift

    func appendStorage(with sampleBuffer: CMSampleBuffer!)
  • save all the acccumulated frames into video file

    Declaration

    Objective-C

    - (void)endRecordWithCompletion:(VoidBlock _Nonnull)completion;

    Swift

    func endRecord() async
  • Define length of recorded video

    Declaration

    Objective-C

    - (void)defineVideoRecordLength:(CGFloat)recordLength;

    Swift

    optional func defineVideoRecordLength(_ recordLength: CGFloat)