From 76ca77924b44367eda150ed7e6439b289f2b9078 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Sun, 27 Jun 2010 04:37:55 -0400 Subject: nice: Use nice_interfaces to get local addresses --- examples/gui/fs2-gui.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/gui/fs2-gui.py b/examples/gui/fs2-gui.py index 89905520..ce969a8d 100755 --- a/examples/gui/fs2-gui.py +++ b/examples/gui/fs2-gui.py @@ -65,7 +65,7 @@ VIDEO=True CLIENT=1 SERVER=2 -TRANSMITTER="rawudp" +TRANSMITTER="nice" mycname = "".join((pwd.getpwuid(os.getuid())[0], "-" , @@ -485,6 +485,12 @@ class FsUIStream: self.connect.send_candidates_done(self.participant.id, self.id) def new_local_candidate(self, candidate): "Callback from FsStream" + if "." in candidate.ip: + print "IPv4 Candidate: " +candidate.ip + elif ":" in candidate.ip: + print "IPv6 Candidate: " +candidate.ip + else: + print "STRANGE Candidate: " +candidate.ip self.connect.send_candidate(self.participant.id, self.id, candidate) def __src_pad_added(self, stream, pad, codec): "Callback from FsStream" -- cgit v1.2.1