[Telepathy] How to start a Farsight conference with Telepathy

Fabien LOUIS flouis at viotech.net
Thu Jan 29 05:22:31 PST 2009


Hello,

Currently, I use the Farsight API for create an rtp conference with 2
participants and participants can receive the video stream of the other
participant. This program is Farsight only. On the other hand, I use the
Telepathy API to manage a chat application.

Now, I want to use a StreamedMedia channel in Telepathy to share a
stream in this channel, between two contacts "A" and "B".

Inside contact "A", I create a StreamedMedia channel (with the interface
Requests) with my contact "B" and I request a stream
(Media_Stream_Type_Audio for example) like the way proposed by the
telepathy wiki (http://telepathy.freedesktop.org/wiki/Requesting%
20StreamedMedia%20channels)

Inside "A, after the stream was created, I call the Ready() function
with my specific codec ([8, "PCM", MEDIA_STREAM_TYPE_AUDIO, 8000, 2,
{}]).

Inside "B", I know that a new channel was created with the stream
within.

But I don't know how use this stream to actually send audio or video.
How can I send any information inside the stream? If I do nothing in
each contact on this stream, it will be closed after a few seconds...

Based on what I understand, I should be able to use farsight to send the
video, once I have a channel openned between the two participants.
However, I don't know how I can tell farsight to use the channel I
created. 

I understand that Telepathy manages contacts, channels creation and that
Farsight manages media sending and receiving, but I don't know how to
use them together. 

In http://telepathy.freedesktop.org/wiki/Streamed%20Media StreamEngine
was mentionned, but I don't use it.

If there is some documentation or example explaining the link between
farsight, telepathy, stream engine, I would be glad to read it. 

Thanks for your help,

-- 
Fabien LOUIS <flouis at viotech.net>



More information about the Telepathy mailing list