summaryrefslogtreecommitdiff
path: root/indra/newview/llvoicewebrtc.cpp
diff options
context:
space:
mode:
authorRoxie Linden <roxie@lindenlab.com>2023-09-19 10:14:29 -0700
committerRoxie Linden <roxie@lindenlab.com>2024-02-08 18:34:01 -0800
commitfd8119c550bea19bbcf26e5426f259010f54c43e (patch)
tree1a7e9fb0c7fa67a5ff7f16831cbffef86ec5ae24 /indra/newview/llvoicewebrtc.cpp
parent976a75ed24f11e3211a98120b1ac57126e625d6c (diff)
add datachannel support
Diffstat (limited to 'indra/newview/llvoicewebrtc.cpp')
-rw-r--r--indra/newview/llvoicewebrtc.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llvoicewebrtc.cpp b/indra/newview/llvoicewebrtc.cpp
index 66bed5f0b5..9013de67f5 100644
--- a/indra/newview/llvoicewebrtc.cpp
+++ b/indra/newview/llvoicewebrtc.cpp
@@ -361,6 +361,9 @@ void LLWebRTCVoiceClient::init(LLPumpIO *pump)
mWebRTCSignalingInterface = llwebrtc::getSignalingInterface();
mWebRTCSignalingInterface->setSignalingObserver(this);
+
+ mWebRTCDataInterface = llwebrtc::getDataInterface();
+ mWebRTCDataInterface->setDataObserver(this);
}
void LLWebRTCVoiceClient::terminate()
@@ -2707,6 +2710,12 @@ void LLWebRTCVoiceClient::OnAudioEstablished(llwebrtc::LLWebRTCAudioInterface *
setVoiceControlStateUnless(VOICE_STATE_SESSION_ESTABLISHED, VOICE_STATE_SESSION_RETRY);
}
+void LLWebRTCVoiceClient::OnDataReceived(const std::string& data, bool binary)
+{
+
+}
+
+
void LLWebRTCVoiceClient::OnRenegotiationNeeded()
{
LL_INFOS("Voice") << "On Renegotiation Needed." << LL_ENDL;