forked from sd007/SimpleSipClient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrtprecver.h
48 lines (42 loc) · 982 Bytes
/
rtprecver.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
44
45
46
47
48
#ifndef RTPRECVER_H
#define RTPRECVER_H
#include <QObject>
#include <QThread>
#include <rtpsession.h>
#include <rtpudpv4transmitter.h>
#include <rtpipv4address.h>
#include <rtpsessionparams.h>
#include <rtperrors.h>
#include <rtplibraryversion.h>
#include <rtpsourcedata.h>
#include <rtpsources.h>
#include <rtppacket.h>
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <string>
#include <QVector>
using namespace jrtplib;
class RtpRecver : public QThread
{
Q_OBJECT
public:
explicit RtpRecver(QObject *parent = 0);
~RtpRecver();
void init(QString recvIp, unsigned short recvPort);
void destroy();
protected:
virtual void run();
void ProcessRTPPacket(const RTPSourceData &srcdat,const RTPPacket &rtppack);
;
private:
RTPSession m_rtpSession;
bool m_brecvOver;
char* m_frameBuffer;
int m_bufferSize;
int m_lastSeqNumber;
signals:
void sigRecvedFrame(QByteArray);
public slots:
};
#endif // RTPRECVER_H