Hi, I'm trying to use telepathy-farsight to create a video conference application, using telepathy farsight and python. I made some progress with the help of telepathy's developers but now I'm stuck with the farsight part.
Up to now I can create a telepathy channel and the corresponding telepathy farsight channel. I also get the telepathy farsight stream which has the signal "src-pad-added". However, I cannot get the farsight session associated to the previous farsight stream. I tried to connect my video source to the stream, but this doesn't work. How can I connect my video source to the session? In order to give more details I'm detailling here the procedure that I'm following: Currently, I have created a Telepathy Media Stream Channel and the tf_channel associated. With Telepathy I request a video stream on TelepathyChannel and I receive some signals from tf_channel (session-created, stream-created and stream-get-codec-config). Once I get the tf_stream (with stream_created signal) I connect the following stream signals: src-pad-added, free-resource and request-resource. I got some debug informations at this time: ** (test_mediachannel.py:12724): DEBUG: stream 1 (video) _tf_stream_try_sending_codecs: called (send_local:1 send_supported:0) ** (test_mediachannel.py:12724): DEBUG: stream 1 (video) _tf_stream_try_sending_codecs: Enabling resources to gather codecs ** (test_mediachannel.py:12724): DEBUG: stream 1 (video) tf_stream_request_resource: Requesting resource for direction 1 According to the Telepathy farsight documentation, the request-resource signal needs to return True if the requested resources could be allocated. But when I return True, I get: ** (test_mediachannel.py:12822): DEBUG: stream 1 (video) tf_stream_request_resource: Requesting resource for direction 1 returned 1 And some gstreamer informations: ... x264 [info]: using SAR=1/1 x264 [info]: using cpu capabilities: MMX MMXEXT SSE SSE2 SSE3 3DNow! x264 [info]: slice I:1 Avg QP:24,68 size: 42351 x264 [info]: mb I I16..4: 51,5% 0,0% 48,5% x264 [info]: SSIM Mean Y:0,9782374 x264 [info]: kb/s:5082,1 ... But my script end here and my second contact (who is the signal's recipient) is never notified of the telepathy channel creation. On the other hand, if I return False in request-resource signal, I get: ** (test_mediachannel.py:12985): DEBUG: stream 1 (video) tf_stream_request_resource: Requesting resource for direction 1 returned 0 ** (test_mediachannel.py:12985): DEBUG: stream 1 (video) _tf_stream_try_sending_codecs: Could not get resource, sending may not work And some debug informations: ** (test_mediachannel.py:12985): DEBUG: stream 1 (video) _tf_stream_try_sending_codecs: 96: video H264 clock:90000 channels:0 ... ** (test_mediachannel.py:12985): DEBUG: stream 1 (video) _tf_stream_try_sending_codecs: 100: video DV clock:90000 channels:0 ** (test_mediachannel.py:12985): DEBUG: stream 1 (video) fs_codecs_to_tp: adding codec H264 [96] ... ** (test_mediachannel.py:12985): DEBUG: stream 1 (video) fs_codecs_to_tp: adding codec DV [100] ** (test_mediachannel.py:12985): DEBUG: stream 1 (video) _tf_stream_try_sending_codecs: calling MediaStreamHandler::Ready ** (test_mediachannel.py:12985): DEBUG: stream 1 (video) set_remote_codecs: called ** (test_mediachannel.py:12985): DEBUG: stream 1 (video) set_remote_codecs: adding remote codec H264 [96] ... ** (test_mediachannel.py:12985): DEBUG: stream 1 (video) set_remote_codecs: adding remote codec DV [100] And at this time, my second contact is notified of the created telepathy channel. I connect to the same signals and then the same debugging gstreamer informations is output on the console. ... x264 [info]: using SAR=1/1 x264 [info]: using cpu capabilities: MMX MMXEXT SSE SSE2 SSE3 3DNow! ... ----------- At that point, I have a farsight stream on each side but no farsight session. There must be farsight session "somewhere", but I don't know how to retrieve it. Any idea is welcomed Thank you very much, -- Fabien LOUIS <flo...@viotech.net> ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Farsight-devel mailing list Farsight-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/farsight-devel