PortSIP VoIP SDK Manual for iOS  16.2
PortSIP features our newest, supported, quality-assured VoIP SDK used by Several hundred companies around the world for easy VoIP application develop and quality-assured code.
Functions
Record functions

Functions

(int) - PortSIPSDK::startRecord:recordFilePath:recordFileName:appendTimeStamp:audioFileFormat:audioRecordMode:aviFileCodecType:videoRecordMode:
 Start recording the call. More...
 
(int) - PortSIPSDK::stopRecord:
 Stop recording. More...
 

Detailed Description

Function Documentation

◆ startRecord:recordFilePath:recordFileName:appendTimeStamp:audioFileFormat:audioRecordMode:aviFileCodecType:videoRecordMode:()

- (int) startRecord: (long)  sessionId
recordFilePath: (NSString *)  recordFilePath
recordFileName: (NSString *)  recordFileName
appendTimeStamp: (BOOL)  appendTimeStamp
audioFileFormat: (AUDIO_FILE_FORMAT)  audioFileFormat
audioRecordMode: (RECORD_MODE)  audioRecordMode
aviFileCodecType: (VIDEOCODEC_TYPE)  aviFileCodecType
videoRecordMode: (RECORD_MODE)  videoRecordMode 

Start recording the call.

Parameters
sessionIdThe session ID of call conversation.
recordFilePathThe filepath to which the recording will be saved. It must be existent.
recordFileNameThe filename of the recording. For example audiorecord.wav or videorecord.avi.
appendTimeStampSet to true to append the timestamp to the filename of the recording.
audioFileFormatThe file format for the audio recording.
audioRecordModeThe audio recording mode.
aviFileCodecTypeThe codec that is used for compressing the video data to save into video recording.
videoRecordModeAllow to set video recording mode. Support to record received and/or sent video.
Returns
If the function succeeds, it will return value 0. If the function fails, it will return a specific error code.

◆ stopRecord:()

- (int) stopRecord: (long)  sessionId

Stop recording.

Parameters
sessionIdThe session ID of call conversation.
Returns
If the function succeeds, it will return value 0. If the function fails, it will return a specific error code.