telepathy-farstream Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals |
TfChannel; void tf_channel_new_async (TpChannel *channel_proxy
,GAsyncReadyCallback callback
,gpointer user_data
); TfChannel * tf_channel_new_finish (GObject *object
,GAsyncResult *result
,GError **error
); gboolean tf_channel_bus_message (TfChannel *channel
,GstMessage *message
);
"channel" TpChannel* : Read / Write / Construct Only "fs-conferences" GPtrArray* : Read "object-path" gchar* : Read
"closed" :Run Last
"content-added" :Run Last
"content-removed" :Run Last
"fs-conference-added" :Run Last
"fs-conference-removed" :Run Last
This class handles the org.freedesktop.Telepathy.Channel.Interface.MediaSignalling on a channel using Farstream or the media part of the org.freedesktop.Telepathy.Channel.Type.Call that has HardwareStreaming=FALSE
void tf_channel_new_async (TpChannel *channel_proxy
,GAsyncReadyCallback callback
,gpointer user_data
);
Creates a new TfChannel from an existing channel proxy, the new TfChannel object will be return in the async callback.
The user must call tf_channel_new_finish()
in the callback
to get the finished object.
|
a TpChannel proxy |
|
a GAsyncReadyCallback to call when the channel is ready |
|
the data to pass to callback function |
TfChannel * tf_channel_new_finish (GObject *object
,GAsyncResult *result
,GError **error
);
Completes the construction of a TfChannel.
|
The GObject |
|
a GAsyncResult |
|
the location of a GError or NULL to ignore it |
Returns : |
a TfChannel or NULL if there was an error |
Since 0.2.2
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.
"fs-conferences"
property"fs-conferences" GPtrArray* : Read
GPtrArray of Farstream FsConferences for this channel.
"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. |
"content-added"
signalvoid user_function (TfChannel *tfchannel,
TfContent *content,
gpointer user_data) : Run Last
Tells the application that a content has been added. In the callback for this signal, the application should set its preferred codecs, and hook up to any signal from TfContent it cares about. Special care should be made to connect "src-pad-added" as well as the "start-sending" and "stop-sending" signals.
"content-removed"
signalvoid user_function (TfChannel *tfchannel,
TfContent *content,
gpointer user_data) : Run Last
Tells the application that a content is being removed.
"fs-conference-added"
signalvoid user_function (TfChannel *tfchannel,
FsConference *conf,
gpointer user_data) : Run Last
When this signal is emitted, the conference should be added to the application's pipeline.
|
the TfChannel |
|
a FsConference |
|
user data set when the signal handler was connected. |
"fs-conference-removed"
signalvoid user_function (TfChannel *tfchannel,
FsConference *conf,
gpointer user_data) : Run Last
When this signal is emitted, the conference should be remove from the application's pipeline.
|
the TfChannel |
|
a FsConference |
|
user data set when the signal handler was connected. |