telepathy-farsight Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
TfChannel; TfChannelClass; TfChannel * tf_channel_new (TpChannel *channel_proxy
); void tf_channel_error (TfChannel *chan
,TpMediaStreamError error
,const gchar *message
); TfStream * tf_channel_lookup_stream (TfChannel *chan
,guint stream_id
); void (*TfChannelStreamFunc) (TfChannel *chan
,guint stream_id
,TfStream *stream
,gpointer user_data
); void tf_channel_foreach_stream (TfChannel *chan
,TfChannelStreamFunc func
,gpointer user_data
); gboolean tf_channel_bus_message (TfChannel *channel
,GstMessage *message
);
"closed" :Run Last
"handler-result" :Run Last
"session-created" :Run Last
"session-invalidated" :Run Last
"stream-created" :Run Last
"stream-get-codec-config" :Run Last
This class handles the org.freedesktop.Telepathy.Channel.Interface.MediaSignalling on a channel using Farsight2.
typedef struct { GObjectClass parent_class; } TfChannelClass;
There are no overridable functions
GObjectClass |
the parent GObjecClass |
TfChannel * tf_channel_new (TpChannel *channel_proxy
);
Creates a new TfChannel from an existing channel proxy
void tf_channel_error (TfChannel *chan
,TpMediaStreamError error
,const gchar *message
);
Stops the channel and all stream related to it and sends an error to the connection manager.
|
a TfChannel |
|
the error number of type TpMediaStreamError |
|
the error message |
TfStream * tf_channel_lookup_stream (TfChannel *chan
,guint stream_id
);
Finds the stream with the specified id if it exists.
void (*TfChannelStreamFunc) (TfChannel *chan
,guint stream_id
,TfStream *stream
,gpointer user_data
);
Callback function called on every stream by tf_channel_foreach_stream()
|
The TpMediaChannel |
|
the id of the stream |
|
the TfStream |
|
the passed user data |
void tf_channel_foreach_stream (TfChannel *chan
,TfChannelStreamFunc func
,gpointer user_data
);
Calls the function func on every stream inside this channel.
|
a TfChannel |
|
the function to call on every stream in this channel |
|
data that will be passed to the function |
gboolean tf_channel_bus_message (TfChannel *channel
,GstMessage *message
);
You must call this function on call messages received on the async bus. GstMessages are not modified.
|
A TfChannel |
|
A GstMessage received from the bus |
Returns : |
TRUE if the message has been handled, FALSE otherwise |
"channel"
property"channel" TpChannel* : Read / Write / Construct Only
Telepathy channel object which this media channel should operate on.
"object-path"
property"object-path" gchar* : Read
D-Bus object path of the Telepathy channel which this channel operates on.
Default value: NULL
"closed"
signalvoid user_function (TfChannel *arg0,
gpointer user_data) : Run Last
This function is called after a channel is closed, either because it has been closed by the connection manager or because we had a locally generated error.
|
user data set when the signal handler was connected. |
"handler-result"
signalvoid user_function (TfChannel *error,
gpointer arg1,
gpointer user_data) : Run Last
This message is emitted when we are ready to handle the channel with NULL
or with an GError if we can not handle the channel.
"session-created"
signalvoid user_function (TfChannel *tfchannel,
FsConference *conference,
FsParticipant *participant,
gpointer user_data) : Run Last
This signal is emitted when a new session has been created in the connection manager. The user should add the new FsConference to a pipeline and set it to playing. The user should also set any property he wants to set.
|
the TfChannel which has a new stream |
|
the FsConference of the new session |
|
the FsParticipant of the new session |
|
user data set when the signal handler was connected. |
"session-invalidated"
signalvoid user_function (TfChannel *tfchannel,
FsConference *conference,
FsParticipant *participant,
gpointer user_data) : Run Last
This signal is emitted when a session has been invalidated. The FsConference and FsParticipant for this session are returned. The FsConference should be removed from the pipeline.
|
the TfChannel which has a new stream |
|
the FsConference of the new session |
|
the FsParticipant of the new session |
|
user data set when the signal handler was connected. |
"stream-created"
signalvoid user_function (TfChannel *tfchannel,
TfStream *stream,
gpointer user_data) : Run Last
This signal is emitted when a new stream has been created in the connection manager and a local proxy has been generated.
"stream-get-codec-config"
signalFsCodecGList* user_function (TfChannel *tfchannel,
guint stream_id,
guint media_type,
guint direction,
gpointer user_data) : Run Last
This is emitted when a new stream is created and allows the caller to specify his codec preferences.
|
the TfChannel |
|
The ID of the stream which is requestiing new codec config |
|
The TpMediaStreamType of the stream |
|
The TpMediaStreamDirection of the stream |
|
user data set when the signal handler was connected. |
Returns : |
a GList of FsCodec |