webrtc-sendrecv.py: Add a stun server
authorJan Schmidt <jan@centricular.com>
Fri, 21 Feb 2020 03:01:58 +0000 (14:01 +1100)
committerJan Schmidt <jan@centricular.com>
Fri, 21 Feb 2020 03:01:58 +0000 (14:01 +1100)
Fixes https://github.com/centricular/gstwebrtc-demos/issues/160

webrtc/sendrecv/gst/webrtc-sendrecv.py

index 88870b1..b19bc3f 100644 (file)
@@ -16,7 +16,7 @@ gi.require_version('GstSdp', '1.0')
 from gi.repository import GstSdp
 
 PIPELINE_DESC = '''
-webrtcbin name=sendrecv bundle-policy=max-bundle
+webrtcbin name=sendrecv bundle-policy=max-bundle stun-server=stun://stun.l.google.com:19302
  videotestsrc is-live=true pattern=ball ! videoconvert ! queue ! vp8enc deadline=1 ! rtpvp8pay !
  queue ! application/x-rtp,media=video,encoding-name=VP8,payload=97 ! sendrecv.
  audiotestsrc is-live=true wave=red-noise ! audioconvert ! audioresample ! queue ! opusenc ! rtpopuspay !