mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 05:12:09 +00:00
Set TURN server in Rust sendrecv example too
Previously it was only in the multiparty example.
This commit is contained in:
parent
5bf67feae8
commit
65db695212
1 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,7 @@ use serde_derive::{Deserialize, Serialize};
|
||||||
use anyhow::{anyhow, bail, Context};
|
use anyhow::{anyhow, bail, Context};
|
||||||
|
|
||||||
const STUN_SERVER: &str = "stun://stun.l.google.com:19302";
|
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
|
// upgrade weak reference or return
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
|
@ -131,6 +132,7 @@ impl App {
|
||||||
|
|
||||||
// Set some properties on webrtcbin
|
// Set some properties on webrtcbin
|
||||||
webrtcbin.set_property_from_str("stun-server", STUN_SERVER);
|
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");
|
webrtcbin.set_property_from_str("bundle-policy", "max-bundle");
|
||||||
|
|
||||||
// Create a stream for handling the GStreamer message asynchronously
|
// Create a stream for handling the GStreamer message asynchronously
|
||||||
|
|
Loading…
Reference in a new issue