47 JAMI_ERR(
"Unable to toggle recording, non existent recorder");
54 dhtnet::fileutils::check_dir(
dir);
55 auto timeStamp = fmt::format(
"{:%Y%m%d-%H%M%S}", std::chrono::system_clock::now());
68 JAMI_ERR(
"Unable to start recording, non existent recorder");
74 JAMI_ERR(
"Unable to start recording, path is empty");
92 JAMI_WARN(
"Unable to stop recording, non existent recorder");
97 JAMI_WARN(
"Unable to stop non-running recording");
const std::string & getRecordPath() const
static LIBJAMI_TEST_EXPORT Manager & instance()
AudioPreference audioPreference
Audio preferences.
virtual bool startRecording(const std::string &path)
Start recording.
virtual void stopRecording()
Stop recording.
virtual bool toggleRecording()
This method must be implemented for this interface as calls and conferences have different behavior.
std::shared_ptr< MediaRecorder > recorder_
virtual std::string getPath() const
Return the file path for this recording.
const std::filesystem::path & get_home_dir()
void emitSignal(Args... args)