Liblinphone
5.3.0
|
Object used to record the audio or video of a call. More...
#include <recorder.hh>
Public Types | |
enum | FileFormat { Unknown, Wav, Mkv } |
Enum representing the file format of a recording. | |
enum | State { State::Closed, State::Paused, State::Running } |
Enum representing the state of a recording. More... | |
Public Member Functions | |
LINPHONECXX_PUBLIC | Recorder (void *ptr, bool takeRef=true) |
LINPHONECXX_PUBLIC _LinphoneRecorder * | cPtr () |
LINPHONECXX_PUBLIC float | getCaptureVolume () const |
Get linear volume when capturing audio. More... | |
LINPHONECXX_PUBLIC int | getDuration () const |
Gets the duration of the recording. More... | |
LINPHONECXX_PUBLIC std::string | getFile () const |
Gets the file used for recording. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< const linphone::RecorderParams > | getParams () const |
Retrieve the RecorderParams object. More... | |
LINPHONECXX_PUBLIC void | setParams (const std::shared_ptr< linphone::RecorderParams > ¶ms) |
Set the RecorderParams object. More... | |
LINPHONECXX_PUBLIC State | getState () const |
Gets the current state of the recorder. More... | |
LINPHONECXX_PUBLIC void | close () |
Close the opened file. | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Content > | createContent () |
Create a content from the recording, for example to send it in a chat message. More... | |
LINPHONECXX_PUBLIC linphone::Status | open (const std::string &file) |
Open a file for recording. More... | |
LINPHONECXX_PUBLIC linphone::Status | pause () |
Pause the recording. | |
LINPHONECXX_PUBLIC linphone::Status | start () |
Start the recording into the opened file. | |
Object used to record the audio or video of a call.
|
strong |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Content> linphone::Recorder::createContent | ( | ) |
LINPHONECXX_PUBLIC float linphone::Recorder::getCaptureVolume | ( | ) | const |
Get linear volume when capturing audio.
LINPHONECXX_PUBLIC int linphone::Recorder::getDuration | ( | ) | const |
Gets the duration of the recording.
LINPHONECXX_PUBLIC std::string linphone::Recorder::getFile | ( | ) | const |
Gets the file used for recording.
LINPHONECXX_PUBLIC std::shared_ptr<const linphone::RecorderParams> linphone::Recorder::getParams | ( | ) | const |
Retrieve the RecorderParams object.
LINPHONECXX_PUBLIC State linphone::Recorder::getState | ( | ) | const |
Gets the current state of the recorder.
LINPHONECXX_PUBLIC linphone::Status linphone::Recorder::open | ( | const std::string & | file | ) |
Open a file for recording.
file | The path to the file to open. |
LINPHONECXX_PUBLIC void linphone::Recorder::setParams | ( | const std::shared_ptr< linphone::RecorderParams > & | params | ) |
Set the RecorderParams object.
params | The RecorderParams object to set. |