45 JAMI_ERR(
"Unable to set path while recording");
57 JAMI_ERR(
"Recording already started!");
62 JAMI_ERR(
"Unable to start recording (path not set)");
67 JAMI_ERR(
"Unable to start recording (no recorder)");
77 audioInput_->attach(
recorder_->addStream(audioInput_->getInfo()));
78 audioInput_->switchInput(
"");
87 JAMI_ERR() <<
"Unable to record video (no video input)";
99 if (
auto*
ob =
recorder_->getStream(audioInput_->getInfo().name))
100 audioInput_->detach(
ob);
bool start()
Start local recording.
LocalRecorder(const std::string &inputUri)
void setPath(const std::string &path)
Set recording path.
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)