Ring Daemon 16.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
jami::LocalRecorder Class Reference

#include <localrecorder.h>

Inheritance diagram for jami::LocalRecorder:
Inheritance graph
Collaboration diagram for jami::LocalRecorder:
Collaboration graph

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 ()
 
- 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< MediaRecorderrecorder_
 
bool recording_ {false}
 

Detailed Description

Definition at line 37 of file localrecorder.h.

Constructor & Destructor Documentation

◆ LocalRecorder()

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_.

Here is the call graph for this function:

◆ ~LocalRecorder()

jami::LocalRecorder::~LocalRecorder ( )

Definition at line 36 of file localrecorder.cpp.

References jami::Recordable::isRecording(), and stopRecording().

Here is the call graph for this function:

Member Function Documentation

◆ setPath()

void jami::LocalRecorder::setPath ( const std::string &  path)

Set recording path.

Definition at line 43 of file localrecorder.cpp.

References jami::Recordable::isRecording(), JAMI_ERR, and jami::Recordable::recorder_.

Here is the call graph for this function:

◆ startRecording()

bool jami::LocalRecorder::startRecording ( )

◆ stopRecording()

void jami::LocalRecorder::stopRecording ( )
overridevirtual

The documentation for this class was generated from the following files: