[farsight2/master] Force codec to h263-1998 in python example

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:23:39 PST 2008


---
 python/example.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/python/example.py b/python/example.py
index f32fc57..aa62fa1 100644
--- a/python/example.py
+++ b/python/example.py
@@ -13,8 +13,9 @@ session = conference.new_session (farsight.MEDIA_TYPE_VIDEO)
 participant = conference.new_participant (sys.argv[2]+"@1.2.3.4")
 stream = session.new_stream (participant, farsight.DIRECTION_BOTH, "multicast")
 
-stream.set_remote_codecs(session.get_property("local-codecs"))
-
+stream.set_remote_codecs([farsight.Codec(96, "H263-1998",
+                                         farsight.MEDIA_TYPE_VIDEO,
+                                         90000)])
 candidate = farsight.Candidate()
 candidate.ip = "224.0.0.110"
 candidate.port = 3442
-- 
1.5.6.5




More information about the farsight-commits mailing list