LeviLamina
Loading...
Searching...
No Matches
JsepTransport.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/webrtc/ConnectionRole.h"
7#include "mc/external/webrtc/ContentSource.h"
8#include "mc/external/webrtc/SSLRole.h"
9#include "mc/external/webrtc/SdpType.h"
10#include "mc/external/webrtc/scoped_refptr.h"
11
12// auto generated forward declare list
13// clang-format off
14namespace webrtc { class Candidate; }
15namespace webrtc { class ContentInfo; }
16namespace webrtc { class DtlsSrtpTransport; }
17namespace webrtc { class DtlsTransportInternal; }
18namespace webrtc { class IceTransportInterface; }
19namespace webrtc { class IceTransportInternal; }
20namespace webrtc { class PayloadTypePicker; }
21namespace webrtc { class RTCCertificate; }
22namespace webrtc { class RTCError; }
23namespace webrtc { class RtpTransport; }
24namespace webrtc { class SctpTransportInternal; }
25namespace webrtc { class SrtpTransport; }
26namespace webrtc { struct IceParameters; }
27namespace webrtc { struct JsepTransportDescription; }
28namespace webrtc { struct SSLFingerprint; }
29namespace webrtc { struct TransportStats; }
30// clang-format on
31
32namespace webrtc {
33
34class JsepTransport {
35public:
36 // member variables
37 // NOLINTBEGIN
58 // NOLINTEND
59
60public:
61 // prevent constructor by default
62 JsepTransport& operator=(JsepTransport const&);
63 JsepTransport(JsepTransport const&);
64 JsepTransport();
65
66public:
67 // member functions
68 // NOLINTBEGIN
69 MCNAPI ::webrtc::RTCError AddRemoteCandidates(::std::vector<::webrtc::Candidate> const& candidates);
70
71 MCNAPI ::std::optional<::webrtc::SSLRole> GetDtlsRole() const;
72
73 MCNAPI bool GetStats(::webrtc::TransportStats* stats) const;
74
75 MCNAPI bool GetTransportStats(
76 ::webrtc::DtlsTransportInternal* dtls_transport,
77 int component,
79 ) const;
80
82 ::std::string const& mid,
86 ::std::unique_ptr<::webrtc::RtpTransport> unencrypted_rtp_transport,
87 ::std::unique_ptr<::webrtc::SrtpTransport> sdes_transport,
88 ::std::unique_ptr<::webrtc::DtlsSrtpTransport> dtls_srtp_transport,
89 ::std::unique_ptr<::webrtc::DtlsTransportInternal> rtp_dtls_transport,
90 ::std::unique_ptr<::webrtc::DtlsTransportInternal> rtcp_dtls_transport,
91 ::std::unique_ptr<::webrtc::SctpTransportInternal> sctp_transport,
92 ::std::function<void()> rtcp_mux_active_callback,
94 );
95
96 MCNAPI ::webrtc::RTCError NegotiateAndSetDtlsParameters(::webrtc::SdpType local_description_type);
97
98 MCNAPI ::webrtc::RTCError NegotiateDtlsRole(
99 ::webrtc::SdpType local_description_type,
100 ::webrtc::ConnectionRole local_connection_role,
101 ::webrtc::ConnectionRole remote_connection_role,
102 ::std::optional<::webrtc::SSLRole>* negotiated_dtls_role
103 );
104
105 MCNAPI ::webrtc::RTCError
106 RecordPayloadTypes(bool local, ::webrtc::SdpType type, ::webrtc::ContentInfo const& content);
107
108 MCNAPI void SetActiveResetSrtpParams(bool active_reset_srtp_params);
109
110 MCNAPI ::webrtc::RTCError SetLocalJsepTransportDescription(
111 ::webrtc::JsepTransportDescription const& jsep_description,
112 ::webrtc::SdpType type
113 );
114
116
118 ::webrtc::IceParameters const& ice_parameters,
119 ::webrtc::IceTransportInternal* ice_transport
120 );
121
122 MCNAPI ::webrtc::RTCError SetRemoteJsepTransportDescription(
123 ::webrtc::JsepTransportDescription const& jsep_description,
124 ::webrtc::SdpType type
125 );
126
127 MCNAPI bool SetRtcpMux(bool enable, ::webrtc::SdpType type, ::webrtc::ContentSource source);
128
129 MCNAPI ::webrtc::RTCError VerifyCertificateFingerprint(
130 ::webrtc::RTCCertificate const* certificate,
131 ::webrtc::SSLFingerprint const* fingerprint
132 ) const;
133
135 // NOLINTEND
136
137public:
138 // constructor thunks
139 // NOLINTBEGIN
140 MCNAPI void* $ctor(
141 ::std::string const& mid,
145 ::std::unique_ptr<::webrtc::RtpTransport> unencrypted_rtp_transport,
146 ::std::unique_ptr<::webrtc::SrtpTransport> sdes_transport,
147 ::std::unique_ptr<::webrtc::DtlsSrtpTransport> dtls_srtp_transport,
148 ::std::unique_ptr<::webrtc::DtlsTransportInternal> rtp_dtls_transport,
149 ::std::unique_ptr<::webrtc::DtlsTransportInternal> rtcp_dtls_transport,
150 ::std::unique_ptr<::webrtc::SctpTransportInternal> sctp_transport,
151 ::std::function<void()> rtcp_mux_active_callback,
153 );
154 // NOLINTEND
155
156public:
157 // destructor thunk
158 // NOLINTBEGIN
159 MCNAPI void $dtor();
160 // NOLINTEND
161};
162
163} // namespace webrtc
Definition Candidate.h:12
Definition ContentInfo.h:12
Definition DtlsSrtpTransport.h:18
Definition DtlsTransportInternal.h:22
Definition IceTransportInterface.h:15
Definition IceTransportInternal.h:29
MCAPI bool GetStats(::webrtc::TransportStats *stats) const
MCAPI::webrtc::RTCError AddRemoteCandidates(::std::vector<::webrtc::Candidate > const &candidates)
MCAPI::webrtc::RTCError NegotiateDtlsRole(::webrtc::SdpType local_description_type, ::webrtc::ConnectionRole local_connection_role, ::webrtc::ConnectionRole remote_connection_role, ::std::optional<::webrtc::SSLRole > *negotiated_dtls_role)
MCAPI ::std::optional<::webrtc::SSLRole > GetDtlsRole() const
MCAPI void SetRemoteIceParameters(::webrtc::IceParameters const &ice_parameters, ::webrtc::IceTransportInternal *ice_transport)
MCAPI JsepTransport(::std::string const &mid, ::webrtc::scoped_refptr<::webrtc::RTCCertificate > const &local_certificate, ::webrtc::scoped_refptr<::webrtc::IceTransportInterface > ice_transport, ::webrtc::scoped_refptr<::webrtc::IceTransportInterface > rtcp_ice_transport, ::std::unique_ptr<::webrtc::RtpTransport > unencrypted_rtp_transport, ::std::unique_ptr<::webrtc::SrtpTransport > sdes_transport, ::std::unique_ptr<::webrtc::DtlsSrtpTransport > dtls_srtp_transport, ::std::unique_ptr<::webrtc::DtlsTransportInternal > rtp_dtls_transport, ::std::unique_ptr<::webrtc::DtlsTransportInternal > rtcp_dtls_transport, ::std::unique_ptr<::webrtc::SctpTransportInternal > sctp_transport, ::std::function< void()> rtcp_mux_active_callback, ::webrtc::PayloadTypePicker &suggester)
MCAPI void SetNeedsIceRestartFlag()
MCAPI::webrtc::RTCError SetLocalJsepTransportDescription(::webrtc::JsepTransportDescription const &jsep_description, ::webrtc::SdpType type)
MCAPI::webrtc::RTCError VerifyCertificateFingerprint(::webrtc::RTCCertificate const *certificate, ::webrtc::SSLFingerprint const *fingerprint) const
MCAPI bool SetRtcpMux(bool enable, ::webrtc::SdpType type, ::webrtc::ContentSource source)
MCAPI bool GetTransportStats(::webrtc::DtlsTransportInternal *dtls_transport, int component, ::webrtc::TransportStats *stats) const
MCAPI::webrtc::RTCError NegotiateAndSetDtlsParameters(::webrtc::SdpType local_description_type)
MCAPI::webrtc::RTCError SetRemoteJsepTransportDescription(::webrtc::JsepTransportDescription const &jsep_description, ::webrtc::SdpType type)
MCAPI void SetActiveResetSrtpParams(bool active_reset_srtp_params)
MCAPI::webrtc::RTCError RecordPayloadTypes(bool local, ::webrtc::SdpType type, ::webrtc::ContentInfo const &content)
MCAPI void * $ctor(::std::string const &mid, ::webrtc::scoped_refptr<::webrtc::RTCCertificate > const &local_certificate, ::webrtc::scoped_refptr<::webrtc::IceTransportInterface > ice_transport, ::webrtc::scoped_refptr<::webrtc::IceTransportInterface > rtcp_ice_transport, ::std::unique_ptr<::webrtc::RtpTransport > unencrypted_rtp_transport, ::std::unique_ptr<::webrtc::SrtpTransport > sdes_transport, ::std::unique_ptr<::webrtc::DtlsSrtpTransport > dtls_srtp_transport, ::std::unique_ptr<::webrtc::DtlsTransportInternal > rtp_dtls_transport, ::std::unique_ptr<::webrtc::DtlsTransportInternal > rtcp_dtls_transport, ::std::unique_ptr<::webrtc::SctpTransportInternal > sctp_transport, ::std::function< void()> rtcp_mux_active_callback, ::webrtc::PayloadTypePicker &suggester)
Definition PayloadTypePicker.h:18
Definition RTCCertificate.h:18
Definition RTCError.h:10
Definition RtpTransport.h:28
Definition SctpTransportInternal.h:18
Definition SrtpTransport.h:22
Definition scoped_refptr.h:8
Definition Alias.h:14
Definition IceParameters.h:12
Definition JsepTransportDescription.h:12
Definition SSLFingerprint.h:17
Definition TransportStats.h:7