-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
56 lines (50 loc) · 2.07 KB
/
main.cpp
File metadata and controls
56 lines (50 loc) · 2.07 KB
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
52
53
54
55
56
#include <QCoreApplication>
#include <QUrl>
#include "Qt/Server/Server.h"
int main(int argc, char *argv[])
{
QCoreApplication app(argc, argv);
webrtsp::qt::Config config;
config.streamers =
{
{
QUrl::toPercentEncoding(QStringLiteral("Štrbské pleso")).toStdString(),
{
.type = webrtsp::qt::StreamerConfig::Type::ReStreamer,
.uri = "rtsp://stream.strba.sk:1935/strba/VYHLAD_JAZERO.stream",
.description = "rtsp://stream.strba.sk:1935/strba/VYHLAD_JAZERO.stream",
.forceH264ProfileLevelId = "42c015",
}
},
{
QUrl::toPercentEncoding(QStringLiteral("Western Cape")).toStdString(),
{
.type = webrtsp::qt::StreamerConfig::Type::ReStreamer,
.uri = "rtsp://196.21.92.82/axis-media/media.amp",
.description = "rtsp://196.21.92.82/axis-media/media.amp",
.forceH264ProfileLevelId = "42c015",
}
},
{
QUrl::toPercentEncoding(QStringLiteral("Nordland")).toStdString(),
{
.type = webrtsp::qt::StreamerConfig::Type::ReStreamer,
.uri = "rtsp://77.110.228.219/axis-media/media.amp",
.description = "rtsp://77.110.228.219/axis-media/media.amp",
.forceH264ProfileLevelId = "42c015",
}
},
{
QUrl::toPercentEncoding(QStringLiteral("Price Center Plaza")).toStdString(),
{
.type = webrtsp::qt::StreamerConfig::Type::ReStreamer,
.uri = "rtsp://132.239.12.145:554/axis-media/media.amp",
.description = "rtsp://132.239.12.145:554/axis-media/media.amp",
.forceH264ProfileLevelId = "42c015",
}
}
};
config.authToken = "token";
webrtsp::qt::Server webRTSPServer(&config);
return app.exec();
}