-
Notifications
You must be signed in to change notification settings - Fork 1
/
nwayrtc.h
43 lines (36 loc) · 1.56 KB
/
nwayrtc.h
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
#ifndef NWAYRTC_H
#define NWAYRTC_H
#include <cstdio>
#include <stdint.h>
#include "IRtcEngineEventHandler.h"
#include <list>
namespace nwayrtc {
class NWayRtc
{
public:
//SipEngineManager *getSipEngineManager();
//QVariantList getRecordingDeviceList();
//QVariantList getPlayoutDeviceList();
//QVariantList getVideoDeviceList();
virtual int setRecordingDevice(const char* guid) = 0;
virtual int setPlayoutDevice(const char* guid) = 0;
virtual int setVideoDevice(const char* guid) = 0;
virtual int registerAccount(const char* serverIp, const char* username,
const char* password, const char* displayname) = 0;
virtual int call(const char* calleeUri) = 0;
virtual void callForward(std::list<const char*> callForwardUsers, const char* localDisplayName,
bool isVideo, bool hwAcceleration, int width,
int height, int fps, int bitrate, const char* deviceType) = 0;
virtual int earlyAnswer(int callId) = 0;
virtual int answer(int callId) = 0;
virtual int hangup(int callId) = 0;
//virtual void setupLocalVideo(int callId, VideoSink* videoSink) = 0;
//virtual void setupRemoteVideo(int callId, VideoSink* videoSink) = 0;
virtual void setNWayRtcEvent(IRtcEngineEventHandler* iRtcEngineEventHandler) = 0;
virtual void flowStream() = 0;
virtual void sendVideoPacket(const uint8_t* packet, int len, uint8_t payloadType, uint32_t timeStamp) = 0;
public:
static NWayRtc* createNWayRtcEngine();
};
} //end of nwayrtc namespace
#endif // NWAYRTC_H