summaryrefslogtreecommitdiff
path: root/indra/llwebrtc/llwebrtc.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-10-21 23:19:52 +0300
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-10-22 22:43:57 +0300
commitbb26aa3c2cb8ff961668cf0ad8180d3e9c57f941 (patch)
tree5234aecd40591493a5d18c450e90b21b57868614 /indra/llwebrtc/llwebrtc.cpp
parent6a5d4e0e3de5448835b58177ce7a64119facbd28 (diff)
#4652 Improve switching of webrtc devices
Diffstat (limited to 'indra/llwebrtc/llwebrtc.cpp')
-rw-r--r--indra/llwebrtc/llwebrtc.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/llwebrtc/llwebrtc.cpp b/indra/llwebrtc/llwebrtc.cpp
index b9f126e511..699e6b94a8 100644
--- a/indra/llwebrtc/llwebrtc.cpp
+++ b/indra/llwebrtc/llwebrtc.cpp
@@ -582,6 +582,13 @@ void LLWebRTCImpl::setRenderDevice(const std::string &id)
deployDevices();
}
+void LLWebRTCImpl::setDevices(const std::string& capture_id, const std::string& render_id)
+{
+ mRecordingDevice = capture_id;
+ mPlayoutDevice = render_id;
+ deployDevices();
+}
+
// updateDevices needs to happen on the worker thread.
void LLWebRTCImpl::updateDevices()
{