mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-20 00:57:49 +01:00
Allow ICE server hostname to be set
This commit is contained in:
parent
0578c02a2f
commit
c1124288a3
2 changed files with 2 additions and 0 deletions
|
@ -62,6 +62,7 @@ namespace webrtc {
|
||||||
typedef struct {
|
typedef struct {
|
||||||
const char* username_borrowed;
|
const char* username_borrowed;
|
||||||
const char* password_borrowed;
|
const char* password_borrowed;
|
||||||
|
const char* hostname_borrowed;
|
||||||
const char** urls_borrowed;
|
const char** urls_borrowed;
|
||||||
size_t urls_size;
|
size_t urls_size;
|
||||||
} RffiIceServer;
|
} RffiIceServer;
|
||||||
|
|
|
@ -389,6 +389,7 @@ RUSTEXPORT PeerConnectionInterface* Rust_createPeerConnection(
|
||||||
webrtc::PeerConnectionInterface::IceServer rtc_ice_server;
|
webrtc::PeerConnectionInterface::IceServer rtc_ice_server;
|
||||||
rtc_ice_server.username = std::string(ice_server.username_borrowed);
|
rtc_ice_server.username = std::string(ice_server.username_borrowed);
|
||||||
rtc_ice_server.password = std::string(ice_server.password_borrowed);
|
rtc_ice_server.password = std::string(ice_server.password_borrowed);
|
||||||
|
rtc_ice_server.hostname = std::string(ice_server.hostname_borrowed);
|
||||||
for (size_t i = 0; i < ice_server.urls_size; i++) {
|
for (size_t i = 0; i < ice_server.urls_size; i++) {
|
||||||
rtc_ice_server.urls.push_back(std::string(ice_server.urls_borrowed[i]));
|
rtc_ice_server.urls.push_back(std::string(ice_server.urls_borrowed[i]));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue