![]() |
![]() |
![]() |
telepathy-farstream Reference Manual | |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
TfContentTfContent — Represent the Content of a channel handled by TfChannel |
TfContent; TfContentClass; GstIterator * tf_content_iterate_src_pads (TfContent *content
,guint *handles
,guint handle_count
); void tf_content_error (TfContent *content
,guint reason
,const gchar *detailed_reason
,const gchar *message_format
,...
); void tf_content_error_literal (TfContent *content
,guint reason
,const gchar *detailed_reason
,const gchar *message
);
"fs-conference" FsConference* : Read "fs-session" FsSession* : Read "media-type" FsMediaType : Read "object-path" gchar* : Read "sink-pad" GstPad* : Read "tf-channel" TfChannel* : Read
"restart-source" :Run Last
"src-pad-added" :Run Last
"start-receiving" :Run Last
"start-sending" :Run Last
"stop-receiving" :Run Last
"stop-sending" :Run Last
Objects of this class allow the user to handle the media side of a Telepathy channel handled by TfChannel.
This object is created by the TfChannel and the user is notified of its
creation by the "content-added" signal. In the callback for this
signal, the user should call tf_content_set_codec_preferences()
and connect
to the "src-pad-added" signal.
typedef struct _TfContent TfContent;
This structure is private, this class is not subclassable.
typedef struct _TfContentClass TfContentClass;
This structure is private, this class is not subclassable.
GstIterator * tf_content_iterate_src_pads (TfContent *content
,guint *handles
,guint handle_count
);
Provides a iterator that can be used to iterate through all of the src pads that are are used to receive from a group of Telepathy handles.
|
a TfContent |
|
a 0 terminated array of guint representing Telepathy handles |
|
the numner of handles in handles
|
Returns : |
a GstIterator |
void tf_content_error (TfContent *content
,guint reason
,const gchar *detailed_reason
,const gchar *message_format
,...
);
Send an error to the Content to the CM, the effect is most likely that the content will be removed.
|
a TfContent |
|
the reason (a TfContentRemovalReason) |
|
The detailled error (as a DBus name) |
|
error Message with printf style formatting |
|
Parameters to insert into the message_format string |
void tf_content_error_literal (TfContent *content
,guint reason
,const gchar *detailed_reason
,const gchar *message
);
Send an error to the Content to the CM, the effect is most likely that the content will be removed.
|
a TfContent |
|
the reason (a TfContentRemovalReason) |
|
The detailled error (as a DBus name) |
|
error Message |
"fs-conference"
property"fs-conference" FsConference* : Read
The Farsight2 conference for this content (could be the same as other contents).
"media-type"
property"media-type" FsMediaType : Read
The FsMediaType for this content.
Default value: FS_MEDIA_TYPE_AUDIO
"object-path"
property"object-path" gchar* : Read
D-Bus object path of the Telepathy content which this content operates on.
Default value: NULL
"tf-channel"
property"tf-channel" TfChannel* : Read
The Telepathy-Farsight Channel for this object.
"restart-source"
signalvoid user_function (TfContent *content,
gpointer user_data) : Run Last
This signal requests that the source be restarted so that the caps can be renegotiated with a new resolutions and framerate.
|
the TfContent |
|
user data set when the signal handler was connected. |
"src-pad-added"
signalvoid user_function (TfContent *content,
guint handle,
FsStream *stream,
GstPad *pad,
FsCodec *codec,
gpointer user_data) : Run Last
This signal is emitted when a data is coming on a new pad. This signal is not emitted on the main thread, so special care must be made to lock the relevant data. When the callback returns from this signal, data will start flowing through the pad, so the application MUST connect a sink.
"start-receiving"
signalgboolean user_function (TfContent *content,
gpointer handles,
guint handle_count,
gpointer user_data) : Run Last
This signal is emitted when the connection managers requests that the application prepares itself to start receiving data again from certain handles.
This signal will only be emitted after the "stop-receiving" signal has succeeded. It will not be emitted right after "src-pad-added".
"start-sending"
signalgboolean user_function (TfContent *content,
gpointer user_data) : Run Last
This signal is emitted when the connection manager ask to send media. For example, this can be used to open a camera, start recording from a microphone or play back a file. The application should start sending data on the "sink-pad"
"stop-receiving"
signalvoid user_function (TfContent *content,
gpointer handles,
guint handle_count,
gpointer user_data) : Run Last
This signal is emitted when the connection manager wants to tell the application that it is now allowed to stop receiving.