-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.h
More file actions
51 lines (36 loc) · 958 Bytes
/
Config.h
File metadata and controls
51 lines (36 loc) · 958 Bytes
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
41
42
43
44
45
46
47
48
49
50
51
#pragma once
#include <deque>
#include <map>
#include <optional>
#include <spdlog/common.h>
#include "Signalling/Config.h"
#include "Client/Config.h"
#include "RtStreaming/WebRTCConfig.h"
struct StreamSource
{
enum class Type {
WebRTSP,
Onvif,
Url,
};
Type type;
std::optional<signalling::Config> localServer; // for RECORD
std::optional<client::Config> client;
std::string uri;
std::string token;
bool trackMotion; // for ONVIF sources
std::chrono::seconds motionPreviewDuration = std::chrono::seconds(15);
};
struct VideoOutput
{
bool showStats = false;
bool sync = true;
};
struct Config
{
spdlog::level::level_enum logLevel = spdlog::level::info;
spdlog::level::level_enum lwsLogLevel = spdlog::level::warn;
std::shared_ptr<WebRTCConfig> webRTCConfig = std::make_shared<WebRTCConfig>();
std::optional<StreamSource> source;
VideoOutput videoOutput;
};