Liblinphone 5.4.23
Call-control

Functions

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

Detailed Description

Function Documentation

◆ linphone_recorder_close()

void linphone_recorder_close ( LinphoneRecorder * recorder)

Closes the opened file.

Parameters
recorderThe LinphoneRecorder object.

◆ linphone_recorder_create_content()

LinphoneContent * linphone_recorder_create_content ( LinphoneRecorder * recorder)

Create a LinphoneContent object from the recording, for example to send it within a LinphoneChatMessage.

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)

Retrieves 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)

Retrieves the user data.

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

◆ linphone_recorder_new()

LinphoneRecorder * linphone_recorder_new ( LinphoneCore * core,
const 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 )

Opens a file for recording.

If the file already exists, it will open in append mode, otherwise it is created.

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()

LinphoneMediaFileFormat 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 used to display the camera preview.

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,
LinphoneMediaFileFormat format )

Set the #LinphoneRecorderFileFormat.

See also
linphone_core_get_supported_file_formats_list() for information about supported file formats.
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 )

Sets the window id to use to display the camera preview.

See also
linphone_core_set_native_window_id() for a general discussion about window ID types.
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)

Pauses 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 )

Sets 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 )

Sets the user data.

Parameters
recorderThe LinphoneRecorder object.
user_dataThe user data to set.

◆ linphone_recorder_start()

LinphoneStatus linphone_recorder_start ( LinphoneRecorder * recorder)

Starts 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.