|
@@ -35,6 +35,11 @@ struct RTC_CPP_EXPORT DataChannelInit {
|
|
string protocol = "";
|
|
string protocol = "";
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+struct RTC_CPP_EXPORT LocalDescriptionInit {
|
|
|
|
+ optional<string> iceUfrag;
|
|
|
|
+ optional<string> icePwd;
|
|
|
|
+};
|
|
|
|
+
|
|
class RTC_CPP_EXPORT PeerConnection final : CheshireCat<impl::PeerConnection> {
|
|
class RTC_CPP_EXPORT PeerConnection final : CheshireCat<impl::PeerConnection> {
|
|
public:
|
|
public:
|
|
enum class State : int {
|
|
enum class State : int {
|
|
@@ -90,7 +95,7 @@ public:
|
|
uint16_t maxDataChannelId() const;
|
|
uint16_t maxDataChannelId() const;
|
|
bool getSelectedCandidatePair(Candidate *local, Candidate *remote);
|
|
bool getSelectedCandidatePair(Candidate *local, Candidate *remote);
|
|
|
|
|
|
- void setLocalDescription(Description::Type type = Description::Type::Unspec);
|
|
|
|
|
|
+ void setLocalDescription(Description::Type type = Description::Type::Unspec, LocalDescriptionInit init = {});
|
|
void setRemoteDescription(Description description);
|
|
void setRemoteDescription(Description description);
|
|
void addRemoteCandidate(Candidate candidate);
|
|
void addRemoteCandidate(Candidate candidate);
|
|
void gatherLocalCandidates(std::vector<IceServer> additionalIceServers = {});
|
|
void gatherLocalCandidates(std::vector<IceServer> additionalIceServers = {});
|