diff options
author | Roxie Linden <roxie@lindenlab.com> | 2023-09-21 23:23:49 -0700 |
---|---|---|
committer | Roxie Linden <roxie@lindenlab.com> | 2024-02-08 18:34:01 -0800 |
commit | 64ec3cb19ffeeb25d7d235e60629c9b4890986f1 (patch) | |
tree | 95891ed754a81f2149148e64f62fca72d105ce6e /indra/newview/llvoicewebrtc.cpp | |
parent | 3f1fa296696086efe618bdbd3c6f636b6e1163b1 (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.cpp | 10 |
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() { |