PortSIP VoIP SDK Manual for Windows  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

Int32 PortSIP.PortSIPLib.startRecord (Int32 sessionId, String recordFilePath, String recordFileName, Boolean appendTimestamp, AUDIO_RECORDING_FILEFORMAT audioFileFormat, RECORD_MODE audioRecordMode, VIDEOCODEC_TYPE videoFileCodecType, RECORD_MODE videoRecordMode)
 Start recording the call. More...
 
Int32 PortSIP.PortSIPLib.stopRecord (Int32 sessionId)
 Stop record. More...
 

Detailed Description

Function Documentation

◆ startRecord()

Int32 PortSIP.PortSIPLib.startRecord ( Int32  sessionId,
String  recordFilePath,
String  recordFileName,
Boolean  appendTimestamp,
AUDIO_RECORDING_FILEFORMAT  audioFileFormat,
RECORD_MODE  audioRecordMode,
VIDEOCODEC_TYPE  videoFileCodecType,
RECORD_MODE  videoRecordMode 
)

Start recording the call.

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

◆ stopRecord()

Int32 PortSIP.PortSIPLib.stopRecord ( Int32  sessionId)

Stop record.

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.