forked from AgoraIO/Basic-Video-Call
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
33 lines (28 loc) · 835 Bytes
/
main.cpp
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
#include "openvideocall.h"
#include "avdevice.h"
#include "nettesting.h"
#include "nettestresult.h"
#include "inroom.h"
#include "enterroom.h"
#include <QApplication>
#include <IAgoraRtcEngine.h>
using namespace agora::rtc;
Q_DECLARE_METATYPE(USER_OFFLINE_REASON_TYPE)
Q_DECLARE_METATYPE(LocalVideoStats)
Q_DECLARE_METATYPE(RemoteVideoStats)
Q_DECLARE_METATYPE(RtcStats)
Q_DECLARE_METATYPE(LastmileProbeResult)
// Start of the application
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
a.setWindowIcon(QIcon("openvideocall.ico"));
qRegisterMetaType<USER_OFFLINE_REASON_TYPE>();
qRegisterMetaType<LocalVideoStats>();
qRegisterMetaType<RemoteVideoStats>();
qRegisterMetaType<RtcStats>();
qRegisterMetaType<LastmileProbeResult>();
OpenVideoCall w;
w.show();
return a.exec();
}