Ring Daemon
16.0.0
Loading...
Searching...
No Matches
localrecorder.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2004-2025 Savoir-faire Linux Inc.
3
*
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see <https://www.gnu.org/licenses/>.
16
*/
17
#pragma once
18
19
#include "
audio/audio_input.h
"
20
#include "
recordable.h
"
21
#ifdef ENABLE_VIDEO
22
#include "
video/video_input.h
"
23
#endif
24
25
namespace
jami
{
26
27
/*
28
* @file localrecorder.h
29
* @brief Class for recording messages locally
30
*/
31
32
/*
33
* The LocalRecorder class exposes the Recordable interface for
34
* recording messages locally.
35
*/
36
37
class
LocalRecorder
:
public
Recordable
38
{
39
public
:
40
LocalRecorder
(
const
std::string&
inputUri
);
41
~LocalRecorder
();
42
46
void
setPath
(
const
std::string& path);
47
52
bool
startRecording
();
53
57
void
stopRecording
()
override
;
58
59
private
:
60
std::string path_;
61
std::string inputUri_;
62
63
// media inputs
64
#ifdef ENABLE_VIDEO
65
std::shared_ptr<jami::video::VideoInput>
videoInput_
;
66
#endif
67
std::shared_ptr<jami::AudioInput> audioInput_;
68
};
69
70
}
// namespace jami
audio_input.h
jami::LocalRecorder
Definition
localrecorder.h:38
jami::LocalRecorder::setPath
void setPath(const std::string &path)
Set recording path.
Definition
localrecorder.cpp:43
jami::LocalRecorder::startRecording
bool startRecording()
Start local recording.
Definition
localrecorder.cpp:55
jami::LocalRecorder::~LocalRecorder
~LocalRecorder()
Definition
localrecorder.cpp:36
jami::LocalRecorder::stopRecording
void stopRecording() override
Stops recording.
Definition
localrecorder.cpp:98
jami::Recordable
Definition
recordable.h:28
jami
Definition
account.cpp:61
jami::emitSignal
void emitSignal(Args... args)
Definition
ring_signal.h:64
recordable.h
video_input.h
src
media
localrecorder.h
Generated on Thu Jun 19 2025 15:50:37 for Ring Daemon by
1.9.8