-
Notifications
You must be signed in to change notification settings - Fork 18
/
qwebrtctypes_p.hpp
51 lines (36 loc) · 1.53 KB
/
qwebrtctypes_p.hpp
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 "qwebrtcsessiondescription.hpp"
#include "qwebrtcicecandidate.hpp"
#include <webrtc/api/jsep.h>
class QWebRTCSessionDescription_impl : public QWebRTCSessionDescription {
public:
QWebRTCSessionDescription_impl(QWebRTCSessionDescription::SDPType type, const QByteArray& sdp);
explicit QWebRTCSessionDescription_impl(webrtc::SessionDescriptionInterface*);
explicit QWebRTCSessionDescription_impl(const webrtc::SessionDescriptionInterface*);
//transfers ownership
webrtc::SessionDescriptionInterface* getNativeDescription();
void parseNativeInterface(const webrtc::SessionDescriptionInterface*);
virtual SDPType type() const override;
virtual QByteArray sdp() const override;
virtual bool isValid() const override;
QWebRTCSessionDescription::SDPType m_type;
QByteArray m_sdp;
private:
webrtc::SessionDescriptionInterface* m_sessionDescription;
};
namespace webrtc {
class JsepIceCandidate;
}
class QWebRTCIceCandidate_impl : public QWebRTCIceCandidate {
public:
QWebRTCIceCandidate_impl(QByteArray sdpMid, int sdpIndex, const QByteArray& sdp);
explicit QWebRTCIceCandidate_impl(const webrtc::IceCandidateInterface*);
virtual QByteArray sdp() const override;
virtual QByteArray sdpMediaId() const override;
virtual int sdpMLineIndex() const override;
virtual bool isValid() const override;
virtual QString type() const override;
webrtc::IceCandidateInterface* iceCandidate();
private:
std::unique_ptr<webrtc::IceCandidateInterface> m_iceCandidate;
};