Liblinphone  5.2.0
Functions
Call-control

Functions

LinphoneRecorderlinphone_recorder_new (LinphoneCore *core, LinphoneRecorderParams *params)
 Create a new LinphoneRecorder object. More...
 
LinphoneRecorderlinphone_recorder_ref (LinphoneRecorder *recorder)
 Take a reference on a LinphoneRecorder object. More...
 
void linphone_recorder_unref (LinphoneRecorder *recorder)
 Release a LinphoneRecorder object. More...
 
LinphoneStatus linphone_recorder_open (LinphoneRecorder *recorder, const char *file)
 Open a file for recording. More...
 
void linphone_recorder_close (LinphoneRecorder *recorder)
 Close the opened file. More...
 
const char * linphone_recorder_get_file (const LinphoneRecorder *recorder)
 Gets the file used for recording. More...
 
LinphoneStatus linphone_recorder_start (LinphoneRecorder *recorder)
 Start the recording into the opened file. More...
 
LinphoneStatus linphone_recorder_pause (LinphoneRecorder *recorder)
 Pause the recording. More...
 
LinphoneRecorderState linphone_recorder_get_state (const LinphoneRecorder *recorder)
 Gets the current state of the recorder. More...
 
int linphone_recorder_get_duration (const LinphoneRecorder *recorder)
 Gets the duration of the recording. More...
 
float linphone_recorder_get_capture_volume (const LinphoneRecorder *recorder)
 Get linear volume when capturing audio. More...
 
LinphoneContentlinphone_recorder_create_content (LinphoneRecorder *recorder)
 Create a content from the recording, for example to send it in a chat message. More...
 
void linphone_recorder_set_params (LinphoneRecorder *recorder, LinphoneRecorderParams *params)
 Set the LinphoneRecorderParams object. More...
 
const LinphoneRecorderParamslinphone_recorder_get_params (const LinphoneRecorder *recorder)
 Retrieve the LinphoneRecorderParams object. More...
 
void linphone_recorder_set_user_data (LinphoneRecorder *recorder, void *user_data)
 Set the user data. More...
 
void * linphone_recorder_get_user_data (const LinphoneRecorder *recorder)
 Retrieve the user data. More...
 
LinphoneRecorderParamslinphone_recorder_params_new (void)
 Create a new LinphoneRecorderParams object. More...
 
LinphoneRecorderParamslinphone_recorder_params_clone (const LinphoneRecorderParams *params)
 Clone a LinphoneRecorderParams object. More...
 
LinphoneRecorderParamslinphone_recorder_params_ref (LinphoneRecorderParams *params)
 Take a reference on a LinphoneRecorderParams object. More...
 
void linphone_recorder_params_unref (LinphoneRecorderParams *params)
 Release a LinphoneRecorderParams object. More...
 
void linphone_recorder_params_set_audio_device (LinphoneRecorderParams *params, const LinphoneAudioDevice *device)
 Set the LinphoneAudioDevice object. More...
 
const LinphoneAudioDevicelinphone_recorder_params_get_audio_device (const LinphoneRecorderParams *params)
 Retrieve the LinphoneAudioDevice object. More...
 
void linphone_recorder_params_set_webcam_name (LinphoneRecorderParams *params, const char *webcam_name)
 Set the webcam name. More...
 
const char * linphone_recorder_params_get_webcam_name (const LinphoneRecorderParams *params)
 Retrieves the webcam name. More...
 
void linphone_recorder_params_set_video_codec (LinphoneRecorderParams *params, const char *video_codec)
 Set the video codec. More...
 
const char * linphone_recorder_params_get_video_codec (const LinphoneRecorderParams *params)
 Retrieves the video codec. More...
 
void linphone_recorder_params_set_file_format (LinphoneRecorderParams *params, LinphoneRecorderFileFormat format)
 Set the LinphoneRecorderFileFormat. More...
 
LinphoneRecorderFileFormat linphone_recorder_params_get_file_format (const LinphoneRecorderParams *params)
 Retrieves the LinphoneRecorderFileFormat. More...
 
void linphone_recorder_params_set_window_id (LinphoneRecorderParams *params, void *window_id)
 Set the window id. More...
 
void * linphone_recorder_params_get_window_id (const LinphoneRecorderParams *params)
 Retrieves the window id. More...
 

Detailed Description

Function Documentation

◆ linphone_recorder_close()

void linphone_recorder_close ( LinphoneRecorder recorder)

Close the opened file.

Parameters
recorderThe LinphoneRecorder object.

◆ linphone_recorder_create_content()

LinphoneContent* linphone_recorder_create_content ( LinphoneRecorder recorder)

Create a content from the recording, for example to send it in a chat message.

Warning
Recorder must be in Closed state!
Parameters
recorderThe LinphoneRecorder object.
Returns
the LinphoneContent matching the recording, or NULL.

◆ linphone_recorder_get_capture_volume()

float linphone_recorder_get_capture_volume ( const LinphoneRecorder recorder)

Get linear volume when capturing audio.

Parameters
recorderThe LinphoneRecorder object.
Returns
Linear volume.

◆ linphone_recorder_get_duration()

int linphone_recorder_get_duration ( const LinphoneRecorder recorder)

Gets the duration of the recording.

Parameters
recorderThe LinphoneRecorder object.
Returns
the duration of the recording, in milliseconds.

◆ linphone_recorder_get_file()

const char* linphone_recorder_get_file ( const LinphoneRecorder recorder)

Gets the file used for recording.

Parameters
recorderThe LinphoneRecorder object.
Returns
the file used for the recording if any.

◆ linphone_recorder_get_params()

const LinphoneRecorderParams* linphone_recorder_get_params ( const LinphoneRecorder recorder)

Retrieve the LinphoneRecorderParams object.

Parameters
recorderThe LinphoneRecorder object.
Returns
The LinphoneRecorderParams object.

◆ linphone_recorder_get_state()

LinphoneRecorderState linphone_recorder_get_state ( const LinphoneRecorder recorder)

Gets the current state of the recorder.

Parameters
recorderThe LinphoneRecorder object.
Returns
the current LinphoneRecorderState.

◆ linphone_recorder_get_user_data()

void* linphone_recorder_get_user_data ( const LinphoneRecorder recorder)

Retrieve the user data.

Parameters
recorderThe LinphoneRecorder object.
Returns
the user data to retrieve.

◆ linphone_recorder_new()

LinphoneRecorder* linphone_recorder_new ( LinphoneCore core,
LinphoneRecorderParams params 
)

Create a new LinphoneRecorder object.

Parameters
coreThe LinphoneCore object.
paramsThe LinphoneRecorderParams object.
Returns
the newly created LinphoneRecorder object.

◆ linphone_recorder_open()

LinphoneStatus linphone_recorder_open ( LinphoneRecorder recorder,
const char *  file 
)

Open a file for recording.

Parameters
recorderThe LinphoneRecorder object.
fileThe path to the file to open.

◆ linphone_recorder_params_clone()

LinphoneRecorderParams* linphone_recorder_params_clone ( const LinphoneRecorderParams params)

Clone a LinphoneRecorderParams object.

Parameters
paramsThe LinphoneRecorderParams object.
Returns
the cloned LinphoneRecorderParams object.

◆ linphone_recorder_params_get_audio_device()

const LinphoneAudioDevice* linphone_recorder_params_get_audio_device ( const LinphoneRecorderParams params)

Retrieve the LinphoneAudioDevice object.

Parameters
paramsThe LinphoneRecorderParams object.
Returns
the LinphoneAudioDevice object.

◆ linphone_recorder_params_get_file_format()

LinphoneRecorderFileFormat linphone_recorder_params_get_file_format ( const LinphoneRecorderParams params)

Retrieves the LinphoneRecorderFileFormat.

Parameters
paramsThe LinphoneRecorderParams object.
Returns
the LinphoneRecorderFileFormat.

◆ linphone_recorder_params_get_video_codec()

const char* linphone_recorder_params_get_video_codec ( const LinphoneRecorderParams params)

Retrieves the video codec.

Parameters
paramsThe LinphoneRecorderParams object.
Returns
the video codec.

◆ linphone_recorder_params_get_webcam_name()

const char* linphone_recorder_params_get_webcam_name ( const LinphoneRecorderParams params)

Retrieves the webcam name.

Parameters
paramsThe LinphoneRecorderParams object.
Returns
the webcam name.

◆ linphone_recorder_params_get_window_id()

void* linphone_recorder_params_get_window_id ( const LinphoneRecorderParams params)

Retrieves the window id.

Parameters
paramsThe LinphoneRecorderParams object.
Returns
the window id.

◆ linphone_recorder_params_new()

LinphoneRecorderParams* linphone_recorder_params_new ( void  )

Create a new LinphoneRecorderParams object.

Returns
the newly created LinphoneRecorderParams object.

◆ linphone_recorder_params_ref()

LinphoneRecorderParams* linphone_recorder_params_ref ( LinphoneRecorderParams params)

Take a reference on a LinphoneRecorderParams object.

Parameters
paramsThe LinphoneRecorderParams object.
Returns
the same LinphoneRecorderParams object.

◆ linphone_recorder_params_set_audio_device()

void linphone_recorder_params_set_audio_device ( LinphoneRecorderParams params,
const LinphoneAudioDevice device 
)

Set the LinphoneAudioDevice object.

Parameters
paramsThe LinphoneRecorderParams object.
deviceThe LinphoneAudioDevice object to set.

◆ linphone_recorder_params_set_file_format()

void linphone_recorder_params_set_file_format ( LinphoneRecorderParams params,
LinphoneRecorderFileFormat  format 
)

Set the LinphoneRecorderFileFormat.

Parameters
paramsThe LinphoneRecorderParams object.
formatThe LinphoneRecorderFileFormat to set.

◆ linphone_recorder_params_set_video_codec()

void linphone_recorder_params_set_video_codec ( LinphoneRecorderParams params,
const char *  video_codec 
)

Set the video codec.

Parameters
paramsThe LinphoneRecorderParams object.
video_codecThe video codec to set.

◆ linphone_recorder_params_set_webcam_name()

void linphone_recorder_params_set_webcam_name ( LinphoneRecorderParams params,
const char *  webcam_name 
)

Set the webcam name.

Parameters
paramsThe LinphoneRecorderParams object.
webcam_nameThe webcam name to set.

◆ linphone_recorder_params_set_window_id()

void linphone_recorder_params_set_window_id ( LinphoneRecorderParams params,
void *  window_id 
)

Set the window id.

Parameters
paramsThe LinphoneRecorderParams object.
window_idThe window id to set.

◆ linphone_recorder_params_unref()

void linphone_recorder_params_unref ( LinphoneRecorderParams params)

Release a LinphoneRecorderParams object.

Parameters
paramsThe LinphoneRecorderParams object.

◆ linphone_recorder_pause()

LinphoneStatus linphone_recorder_pause ( LinphoneRecorder recorder)

Pause the recording.

Parameters
recorderThe LinphoneRecorder object.

◆ linphone_recorder_ref()

LinphoneRecorder* linphone_recorder_ref ( LinphoneRecorder recorder)

Take a reference on a LinphoneRecorder object.

Parameters
recorderThe LinphoneRecorder object.
Returns
the same LinphoneRecorder object.

◆ linphone_recorder_set_params()

void linphone_recorder_set_params ( LinphoneRecorder recorder,
LinphoneRecorderParams params 
)

Set the LinphoneRecorderParams object.

Parameters
recorderThe LinphoneRecorder object.
paramsThe LinphoneRecorderParams object to set.

◆ linphone_recorder_set_user_data()

void linphone_recorder_set_user_data ( LinphoneRecorder recorder,
void *  user_data 
)

Set the user data.

Parameters
recorderThe LinphoneRecorder object.
user_dataThe user data to set.

◆ linphone_recorder_start()

LinphoneStatus linphone_recorder_start ( LinphoneRecorder recorder)

Start the recording into the opened file.

Parameters
recorderThe LinphoneRecorder object.

◆ linphone_recorder_unref()

void linphone_recorder_unref ( LinphoneRecorder recorder)

Release a LinphoneRecorder object.

Parameters
recorderThe LinphoneRecorder object.