VKRecorder Class Reference

Inherits from VKQueue : NSObject
Declared in VKRecorder.h

Overview

VKRecorder is responsible for writing the encoded packets, as they are (no transcoding), to the file

– initWithInputFormat:activeAudioStreamId:activeVideoStreamId:fullPathWithFileName:

Initialize Recorder with the input streams’s format context and optional output file name

- (id)initWithInputFormat:(AVFormatContext *)fmtCtx activeAudioStreamId:(int)aStreamId activeVideoStreamId:(int)vStreamId fullPathWithFileName:(NSString *)path

Parameters

fmtCtx

Input streams’s format context

path

Optional, this is the path where recorded stream will be saved, If, it’s set to NULL, then default path which is tmp folder under home directory will be used.

Return Value

VKRecorder object

Declared In

VKRecorder.h

– start

Start recording functionality

- (void)start

Declared In

VKRecorder.h

– stop

Stop recording functionality

- (void)stop

Declared In

VKRecorder.h

  recordPath

Holds the path of file of recorded stream

@property (nonatomic, readonly) NSString *recordPath

Declared In

VKRecorder.h

  delegate

Delegate object is notified about the status of recording

@property (nonatomic, assign) id<VKRecorderDelegate> delegate

Declared In

VKRecorder.h