forked from AgoraIO/Basic-Video-Broadcasting
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
30 lines (26 loc) · 737 Bytes
/
main.cpp
File metadata and controls
30 lines (26 loc) · 737 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
#include "stdafx.h"
#include "mainwindow.h"
#include "enterroom.h"
#include "inroom.h"
#include <QApplication>
#include <IAgoraRtcEngine.h>
using namespace agora::rtc;
Q_DECLARE_METATYPE(uid_t)
Q_DECLARE_METATYPE(USER_OFFLINE_REASON_TYPE)
Q_DECLARE_METATYPE(LocalVideoStats)
Q_DECLARE_METATYPE(RemoteVideoStats)
Q_DECLARE_METATYPE(RtcStats)
CAgoraConfig gAgoraConfig;
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
a.setWindowIcon(QIcon("home.ico"));
qRegisterMetaType<uid_t>();
qRegisterMetaType<USER_OFFLINE_REASON_TYPE>();
qRegisterMetaType<LocalVideoStats>();
qRegisterMetaType<RemoteVideoStats>();
qRegisterMetaType<RtcStats>();
MainWindow w;
w.show();
return a.exec();
}