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-22 23:11:34 -0800
commit4624184f97a94cd99df3640f5fc1e596c30bbffe (patch)
tree1fff50bd81c97caff9024efcb56002442eb55e1d /indra/newview/llvoicewebrtc.cpp
parentdc56d0104d1c54fd2b9c6925cefbeac04eadcca8 (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()
{