diff options
author | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2009-01-02 16:13:16 -0500 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-04-29 14:38:25 +0100 |
commit | 8f621bbcb23afeff09ac53e3c034ef5167d51fee (patch) | |
tree | ceff2d095da80c06382020ee2f8c2d576fefb8de /examples | |
parent | 94d295458d4414ec7b36af8498895b49b42ddde0 (diff) |
Disable theora, its not usable with SIP
Diffstat (limited to 'examples')
-rw-r--r-- | examples/call.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/call.py b/examples/call.py index e78df0c..9fb97e8 100644 --- a/examples/call.py +++ b/examples/call.py @@ -124,6 +124,13 @@ class Call: self.pipeline.add(conference) self.pipeline.set_state(gst.STATE_PLAYING) + def get_codec_config (self, channel, stream_id, media_type, direction): + print "got codec config" + if media_type == farsight.MEDIA_TYPE_VIDEO: + return [farsight.Codec(farsight.CODEC_ID_DISABLE, "THEORA", farsight.MEDIA_TYPE_VIDEO, 0)] + else: + return None + def channel_ready_cb(self, channel): print "channel ready" channel[CHANNEL_INTERFACE].connect_to_signal('Closed', self.closed_cb) @@ -140,6 +147,7 @@ class Call: self.tfchannel = tfchannel tfchannel.connect ("session-created", self.session_created) tfchannel.connect ("stream-created", self.stream_created) + tfchannel.connect ("stream-get-codec-config", self.get_codec_config) print "Channel ready" |