diff options
author | Olivier CrĂȘte <tester@tester.ca> | 2010-06-27 04:37:55 -0400 |
---|---|---|
committer | Olivier CrĂȘte <tester@tester.ca> | 2010-06-27 04:37:55 -0400 |
commit | 76ca77924b44367eda150ed7e6439b289f2b9078 (patch) | |
tree | 68b05a8ccd7781a0f4ef04f25310076b788596d9 /examples | |
parent | a98e85e79b74b932c40fdbcbf84547f584f8139c (diff) | |
download | farstream-76ca77924b44367eda150ed7e6439b289f2b9078.tar.gz |
nice: Use nice_interfaces to get local addresses
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/gui/fs2-gui.py | 8 |
1 files changed, 7 insertions, 1 deletions
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" |