![]() |
![]() |
![]() |
![]() |
TfContent — Represent the Content of a channel handled by TfChannel
FsConference * | fs-conference | Read |
FsSession * | fs-session | Read |
FsMediaType | media-type | Read |
gchar * | object-path | Read |
GstPad * | sink-pad | Read |
TfChannel * | tf-channel | Read |
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 connect to the “src-pad-added” signal.
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.
void tf_content_error (TfContent *content
,const gchar *message_format
,...
);
Send a fatal streaming error to the Content to the CM, the effect is most likely that the content will be removed.
void tf_content_error_literal (TfContent *content
,const gchar *message
);
Send a fatal streaming error to the Content to the CM, the effect is most likely that the content will be removed.
Rename to: tf_content_error
void tf_content_receiving_failed (TfContent *content
,guint *handles
,guint handle_count
,const gchar *message_format
,...
);
Informs the Connection Manager that receiving has failed for this content. This is a transient error and it may or not not end the Content and the call.
If handles are not specific, it assumes that it is valid for all handles.
void tf_content_receiving_failed_literal (TfContent *content
,guint *handles
,guint handle_count
,const gchar *message
);
Informs the Connection Manager that receiving has failed for this content. This is a transient error and it may or not not end the Content and the call.
If handles are not specific, it assumes that it is valid for all handles.
Rename to: tf_content_receiving_failed
void tf_content_sending_failed (TfContent *content
,const gchar *message_format
,...
);
Informs the Connection Manager that sending has failed for this content. This is a transient error and it may or not not end the Content and the call.
void tf_content_sending_failed_literal (TfContent *content
,const gchar *message
);
Informs the Connection Manager that sending has failed for this content. This is a transient error and it may or not not end the Content and the call.
Rename to: tf_content_sending_failed
“fs-conference”
property“fs-conference” FsConference *
The Farstream conference for this content (could be the same as other contents).
Owner: TfContent
Flags: Read
“fs-session”
property“fs-session” FsSession *
The Farstream session for this content.
Owner: TfContent
Flags: Read
“media-type”
property“media-type” FsMediaType
The FsMediaType for this content.
Owner: TfContent
Flags: Read
Default value: FS_MEDIA_TYPE_AUDIO
“object-path”
property“object-path” gchar *
D-Bus object path of the Telepathy content which this content operates on.
Owner: TfContent
Flags: Read
Default value: NULL
“sink-pad”
property“sink-pad” GstPad *
Sink GstPad for this content.
Owner: TfContent
Flags: Read
“tf-channel”
property“tf-channel” TfChannel *
The Telepathy-Farstream Channel for this object.
Owner: TfContent
Flags: Read
“restart-source”
signalvoid user_function (TfContent *content, gpointer user_data)
This signal requests that the source be restarted so that the caps can be renegotiated with a new resolutions and framerate.
Flags: Run Last
“src-pad-added”
signalvoid user_function (TfContent *content, guint handle, FsStream *stream, GstPad *pad, FsCodec *codec, gpointer user_data)
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.
Flags: Run Last
“start-receiving”
signalgboolean user_function (TfContent *content, gpointer handles, guint handle_count, gpointer user_data)
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”.
Flags: Run Last
“start-sending”
signalgboolean user_function (TfContent *content, gpointer user_data)
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”
Flags: Run Last