telepathy-farsight Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
TfStream; TfStreamClass; void tf_stream_error (TfStream *self
,TpMediaStreamError error
,const gchar *message
); guint tf_stream_get_id (TfStream *stream
);
"block-ready" gboolean : Read / Write "channel" TfChannel* : Read / Write / Construct Only "codec-preferences" FsCodecGList* : Read / Write / Construct Only "direction" guint : Read / Write / Construct Only "farsight-conference" FsConference* : Read / Write / Construct Only "farsight-participant" FsParticipant* : Read / Write / Construct Only "farsight-session" FsSession* : Read "farsight-stream" FsStream* : Read "media-type" guint : Read / Write / Construct Only "nat-properties" gpointer : Write / Construct Only "proxy" TpMediaStreamHandler* : Read / Write / Construct Only "resources" guint : Read "sink-pad" GstPad* : Read "stream-id" guint : Read / Write / Construct Only "tos" guint : Read / Write
"closed" :Run Last
"error" :Run Last
"free-resource" :Run Last
"request-resource" :Run Last
"src-pad-added" :Run Last
These objects handle media streams and wrap the appropriate Farsight 2 objects. It is used to interact on a stream level with the other parts of the media pipeline and the proper UI.
void tf_stream_error (TfStream *self
,TpMediaStreamError error
,const gchar *message
);
This function can be used to tell the connection manager that an error has happened on a specific stream.
|
a TfStream |
|
the error number as a TpMediaStreamError |
|
the message for this error |
"block-ready"
property"block-ready" gboolean : Read / Write
Blocks calling Ready on the StreamHandler.
Default value: FALSE
"channel"
property"channel" TfChannel* : Read / Write / Construct Only
The TfChannel this stream is in.
"codec-preferences"
property "codec-preferences" FsCodecGList* : Read / Write / Construct Only
A GList of FsCodec representing preferences to be passed to the fs_session_set_local_preferences() function.
"direction"
property"direction" guint : Read / Write / Construct Only
The Telepathy stream direction (a TpMediaStreamDirection).
Allowed values: <= 3
Default value: 3
"farsight-conference"
property"farsight-conference" FsConference* : Read / Write / Construct Only
The Farsight conference this stream will create streams within.
"farsight-participant"
property"farsight-participant" FsParticipant* : Read / Write / Construct Only
The Farsight participant this stream will create streams for.
"media-type"
property"media-type" guint : Read / Write / Construct Only
The Telepathy stream media type (as a TpStreamMediaType).
Allowed values: <= 1
Default value: 0
"nat-properties"
property"nat-properties" gpointer : Write / Construct Only
A pointer to a TfNatProperties structure detailing which NAT traversal method and parameters to use for this stream.
"proxy"
property"proxy" TpMediaStreamHandler* : Read / Write / Construct Only
The stream handler proxy which this stream interacts with.
"resources"
property"resources" guint : Read
The resources held by a TpMediaStreamDirection.
Allowed values: <= 3
Default value: 0
"stream-id"
property"stream-id" guint : Read / Write / Construct Only
A number identifying this stream within its channel.
Default value: 0
"tos"
property"tos" guint : Read / Write
The IP Type of Service to set on sent packets.
Allowed values: <= 255
Default value: 0
"closed"
signalvoid user_function (TfStream *stream,
gpointer user_data) : Run Last
This signal is emitted when the Close()
signal is received from the
connection manager.
|
the stream that has been closed |
|
user data set when the signal handler was connected. |
"error"
signalvoid user_function (TfStream *stream,
gpointer user_data) : Run Last
This signal is emitted when there is an error on this stream
|
the stream that has been errored |
|
user data set when the signal handler was connected. |
"free-resource"
signalvoid user_function (TfStream *stream,
guint direction,
gpointer user_data) : Run Last
Emitted when the stream no longer needs a resource allocated from "request-resource" and it can be freed.
|
the stream for which resources can be freed |
|
The direction for which this resource is freed (as a TpMediaDirection |
|
user data set when the signal handler was connected. |
"request-resource"
signalgboolean user_function (TfStream *stream,
guint direction,
gpointer user_data) : Run Last
This signal is emitted when the connection manager ask to send or receive media. For example, this can be used allocated an X window or open a camera. The resouces can later be freed on "free-resource"
"src-pad-added"
signalvoid user_function (TfStream *stream,
GstPad *pad,
FsCodec *codec,
gpointer user_data) : Run Last
This is emitted when a new src pad comes out. The user must connect this pad to his pipeline.
|
the stream which has a new pad |
|
The new src pad |
|
the codec for which data is coming out |
|
user data set when the signal handler was connected. |