[farsight2/master] Update python example to new api
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:23:41 PST 2008
---
python/example.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/python/example.py b/python/example.py
index aa62fa1..8896f3d 100644
--- a/python/example.py
+++ b/python/example.py
@@ -23,11 +23,11 @@ candidate.component_id = farsight.COMPONENT_RTP
candidate.proto = farsight.NETWORK_PROTOCOL_UDP
candidate.type = farsight.CANDIDATE_TYPE_MULTICAST
candidate.ttl = 1
-stream.add_remote_candidate (candidate)
+stream.set_remote_candidates ([candidate])
candidate.port = 3443
candidate.component_id = farsight.COMPONENT_RTCP
-stream.add_remote_candidate (candidate)
+stream.set_remote_candidates ([candidate])
videosource = gst.element_factory_make ("videotestsrc")
videosource.set_property("is-live", True)
--
1.5.6.5
More information about the farsight-commits
mailing list