-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestxVideoChannel.h
More file actions
51 lines (41 loc) · 930 Bytes
/
TestxVideoChannel.h
File metadata and controls
51 lines (41 loc) · 930 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 <stdint.h>
#include <string>
#include "sdk/include/ValleyRtcAPI_C.h"
class CTestxRTCDemoDlg;
class CTestxVideoChannel
{
struct tUserWnd
{
std::string uUserID;
HWND hWnd = nullptr;
};
public:
CTestxVideoChannel(void);
virtual ~CTestxVideoChannel(void);
public:
void AddMyWnd(HWND hWnd )
{
m_hMyWnd = hWnd ;
}
void AddUserWnd(HWND hWnd )
{
m_hUserWnd[m_UserWndCount].hWnd = hWnd;
m_UserWndCount++;
}
void OnTimer();
public:
void Test(const char *pzRoomName, const char* uUserID) ;
void Close() ;
void UserEnter( const char* uUserID ) ;
void UserLeave( const char* uUserID ) ;
bool IsLogined();
protected:
handle_t m_pxRTCEngine;
HWND m_hMyWnd = nullptr;
tUserWnd m_hUserWnd[3];
int m_UserWndCount = 0;
bool m_bFoundUserLeave = false;
public:
CTestxRTCDemoDlg* m_dlg = nullptr;
};