Ring Daemon 16.0.0
|
#include <localrecorder.h>
Public Member Functions | |
LocalRecorder (const std::string &inputUri) | |
void | setPath (const std::string &path) |
Set recording path. | |
bool | startRecording () |
Start local recording. | |
void | stopRecording () override |
Stops recording. | |
~LocalRecorder () | |
![]() | |
virtual std::string | getPath () const |
Return the file path for this recording. | |
bool | isAudioOnly () const |
bool | isRecording () const |
Return recording state (true/false) | |
Recordable () | |
virtual bool | startRecording (const std::string &path) |
Start recording. | |
virtual bool | toggleRecording () |
This method must be implemented for this interface as calls and conferences have different behavior. | |
virtual | ~Recordable () |
Additional Inherited Members | |
![]() | |
std::mutex | apiMutex_ |
bool | isAudioOnly_ {false} |
std::shared_ptr< MediaRecorder > | recorder_ |
bool | recording_ {false} |
Definition at line 37 of file localrecorder.h.
jami::LocalRecorder::LocalRecorder | ( | const std::string & | inputUri | ) |
Definition at line 29 of file localrecorder.cpp.
References jami::emitSignal(), jami::Recordable::isAudioOnly_, and jami::Recordable::recorder_.
jami::LocalRecorder::~LocalRecorder | ( | ) |
Definition at line 36 of file localrecorder.cpp.
References jami::Recordable::isRecording(), and stopRecording().
Set recording path.
Definition at line 43 of file localrecorder.cpp.
References jami::Recordable::isRecording(), JAMI_ERR, and jami::Recordable::recorder_.
bool jami::LocalRecorder::startRecording | ( | ) |
Start local recording.
Return true if recording was successfully started, false otherwise.
Definition at line 55 of file localrecorder.cpp.
References jami::RingBufferPool::bindHalfDuplexOut(), jami::RingBufferPool::DEFAULT_ID, jami::emitSignal(), jami::getAudioInput(), jami::Manager::getRingBufferPool(), jami::Manager::instance(), jami::Recordable::isAudioOnly_, jami::Recordable::isRecording(), JAMI_ERR, jami::Recordable::recorder_, jami::Recordable::startRecording(), and jami::AudioFormat::STEREO().
|
overridevirtual |
Stops recording.
Reimplemented from jami::Recordable.
Definition at line 98 of file localrecorder.cpp.
References jami::RingBufferPool::DEFAULT_ID, jami::emitSignal(), jami::Manager::getRingBufferPool(), jami::Manager::instance(), jami::Recordable::recorder_, jami::Recordable::stopRecording(), and jami::RingBufferPool::unBindHalfDuplexOut().
Referenced by libjami::stopLocalRecorder(), and ~LocalRecorder().