|
Ring Daemon
|
#include <localrecorder.h>


Public Member Functions | |
| LocalRecorder (const std::string &inputUri) | |
| void | setPath (const std::string &path) |
| Set recording path. | |
| bool | start () |
| Start local recording. | |
| void | stopRecording () override |
| Stops recording. | |
| ~LocalRecorder () | |
Public Member Functions inherited from jami::Recordable | |
| 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 | |
Protected Attributes inherited from jami::Recordable | |
| 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 28 of file localrecorder.cpp.
References jami::emitSignal(), jami::Recordable::isAudioOnly_, and jami::Recordable::recorder_.

| jami::LocalRecorder::~LocalRecorder | ( | ) |
Definition at line 35 of file localrecorder.cpp.
References jami::Recordable::isRecording(), and stopRecording().

Set recording path.
Definition at line 42 of file localrecorder.cpp.
References jami::Recordable::isRecording(), JAMI_ERR, and jami::Recordable::recorder_.

| bool jami::LocalRecorder::start | ( | ) |
Start local recording.
Return true if recording was successfully started, false otherwise.
Definition at line 54 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 97 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().
