46 JAMI_ERR(
"Unable to set path while recording");
58 JAMI_ERR(
"Recording already started!");
63 JAMI_ERR(
"Unable to start recording (path not set)");
68 JAMI_ERR(
"Unable to start recording (no recorder)");
78 audioInput_->attach(
recorder_->addStream(audioInput_->getInfo()));
79 audioInput_->switchInput(
"");
88 JAMI_ERR() <<
"Unable to record video (no video input)";
100 if (
auto ob =
recorder_->getStream(audioInput_->getInfo().name))
101 audioInput_->detach(
ob);
LocalRecorder(const std::string &inputUri)
void setPath(const std::string &path)
Set recording path.
bool startRecording()
Start local recording.
void stopRecording() override
Stops recording.
static LIBJAMI_TEST_EXPORT Manager & instance()
RingBufferPool & getRingBufferPool()
Return a pointer to the instance of the RingBufferPool.
virtual bool startRecording(const std::string &path)
Start recording.
virtual void stopRecording()
Stop recording.
std::shared_ptr< MediaRecorder > recorder_
bool isRecording() const
Return recording state (true/false)
void bindHalfDuplexOut(const std::string &readerBufferId, const std::string &sourceBufferId)
Attaches a reader the specified source.
static const char *const DEFAULT_ID
void unBindHalfDuplexOut(const std::string &readerBufferId, const std::string &sourceBufferId)
Detaches a reader from the specified source.
void emitSignal(Args... args)
std::shared_ptr< AudioInput > getAudioInput(const std::string &device)