From 65db695212f9cd09fafb37e2ac19b5a42137faa7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 24 Mar 2020 12:57:17 +0200 Subject: [PATCH] Set TURN server in Rust sendrecv example too Previously it was only in the multiparty example. --- webrtc/sendrecv/gst-rust/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webrtc/sendrecv/gst-rust/src/main.rs b/webrtc/sendrecv/gst-rust/src/main.rs index 48f9c38..92e71b2 100644 --- a/webrtc/sendrecv/gst-rust/src/main.rs +++ b/webrtc/sendrecv/gst-rust/src/main.rs @@ -24,6 +24,7 @@ use serde_derive::{Deserialize, Serialize}; use anyhow::{anyhow, bail, Context}; const STUN_SERVER: &str = "stun://stun.l.google.com:19302"; +const TURN_SERVER: &str = "turn://foo:bar@webrtc.nirbheek.in:3478"; // upgrade weak reference or return #[macro_export] @@ -131,6 +132,7 @@ impl App { // Set some properties on webrtcbin webrtcbin.set_property_from_str("stun-server", STUN_SERVER); + webrtcbin.set_property_from_str("turn-server", TURN_SERVER); webrtcbin.set_property_from_str("bundle-policy", "max-bundle"); // Create a stream for handling the GStreamer message asynchronously -- 2.7.4