-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathConfig.h
40 lines (29 loc) · 846 Bytes
/
Config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#pragma once
#include <optional>
#include <deque>
#include <spdlog/common.h>
#include "Client/Config.h"
#include "RtStreaming/WebRTCConfig.h"
struct StreamerConfig
{
enum class Type {
Test,
ReStreamer,
OnvifReStreamer
};
Type type = Type::Test;
std::string source;
std::optional<std::string> username;
std::optional<std::string> password;
bool recordOnMotion = false;
std::chrono::seconds motionRecordDuration = std::chrono::seconds(10);
};
struct Config : public client::Config
{
spdlog::level::level_enum logLevel = spdlog::level::info;
spdlog::level::level_enum lwsLogLevel = spdlog::level::warn;
std::string targetUri;
std::string recordToken;
StreamerConfig streamer;
std::shared_ptr<WebRTCConfig> webRTCConfig = std::make_shared<WebRTCConfig>();
};