summaryrefslogtreecommitdiff
path: root/indra/newview/llvoicewebrtc.cpp
diff options
context:
space:
mode:
authorRoxie Linden <roxie@lindenlab.com>2023-09-21 23:23:49 -0700
committerRoxie Linden <roxie@lindenlab.com>2024-02-08 18:34:01 -0800
commit64ec3cb19ffeeb25d7d235e60629c9b4890986f1 (patch)
tree95891ed754a81f2149148e64f62fca72d105ce6e /indra/newview/llvoicewebrtc.cpp
parent3f1fa296696086efe618bdbd3c6f636b6e1163b1 (diff)
send a message to the server when we're ready for data channel data
Diffstat (limited to 'indra/newview/llvoicewebrtc.cpp')
-rw-r--r--indra/newview/llvoicewebrtc.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llvoicewebrtc.cpp b/indra/newview/llvoicewebrtc.cpp
index a942eb8288..b621f5ee92 100644
--- a/indra/newview/llvoicewebrtc.cpp
+++ b/indra/newview/llvoicewebrtc.cpp
@@ -2682,6 +2682,16 @@ void LLWebRTCVoiceClient::OnDataReceived(const std::string& data, bool binary)
}
}
+void LLWebRTCVoiceClient::OnDataChannelReady()
+{
+ // send a join
+ Json::FastWriter writer;
+ Json::Value root;
+ root["j"] = true;
+ std::string json_data = writer.write(root);
+ mWebRTCDataInterface->sendData(json_data, false);
+}
+
void LLWebRTCVoiceClient::OnRenegotiationNeeded()
{