| Top |
| guint | components | Read / Write / Construct Only |
| gboolean | do-timestamp | Read / Write |
| GstElement * | gst-sink | Read |
| GstElement * | gst-src | Read |
| guint | tos | Read / Write |
This object is the base implementation of a Farstream Transmitter. It needs to be derived and implement by a Farstream transmitter. A Farstream Transmitter provides a GStreamer network sink and source to be used for the Farstream Session. It creates FsStreamTransmitter objects which are used to set the different per-stream properties
FsTransmitter * fs_transmitter_new (const gchar *type,guint components,guint tos,GError **error);
This function creates a new transmitter of the requested type. It will load the appropriate plugin as required.
type |
The type of transmitter to create |
|
components |
The number of components to create |
|
tos |
The Type of Service of the socket, max is 255 |
|
error |
location of a GError, or NULL if no error occured |
FsStreamTransmitter * fs_transmitter_new_stream_transmitter (FsTransmitter *transmitter,FsParticipant *participant,guint n_parameters,GParameter *parameters,GError **error);
This function will create a new FsStreamTransmitter element for a specific participant for this FsTransmitter
transmitter |
a FsTranmitter |
|
participant |
the FsParticipant for which the FsStream using this new FsStreamTransmitter is created |
|
n_parameters |
The number of parameters to pass to the newly created FsStreamTransmitter |
|
parameters |
an array of GParameter |
|
error |
location of a GError, or NULL if no error occured |
GType
fs_transmitter_get_stream_transmitter_type
(FsTransmitter *transmitter);
This function returns the GObject type for the stream transmitter. This is meant for bindings that need to introspect the type of arguments that can be passed to the _new_stream_transmitter.
void fs_transmitter_emit_error (FsTransmitter *transmitter,gint error_no,const gchar *error_msg);
This function emit the "error" signal on a FsTransmitter, it should only be called by subclasses.
transmitter |
FsTransmitter on which to emit the error signal |
|
error_no |
The number of the error |
|
error_msg |
Error message to be displayed to user |
char **
fs_transmitter_list_available (void);
Get the list of all available transmitters
a newly allocated array of strings containing the
list of all available transmitters or NULL if there are none. It should
be freed with g_strfreev().
struct FsTransmitter;
All members are private, access them using methods and properties
struct FsTransmitterClass {
GObjectClass parent_class;
/*virtual functions */
FsStreamTransmitter *(*new_stream_transmitter) (FsTransmitter *transmitter,
FsParticipant *participant,
guint n_parameters,
GParameter *parameters,
GError **error);
GType (*get_stream_transmitter_type) (FsTransmitter *transmitter);
};
You must override both methods in a subclass.
Creates a new FsStreamTransmitter |
||
Returns the GType of the stream transmitter created by this class (useful for bindings) |
“components” property“components” guint
The number of components to create
Owner: FsTransmitter
Flags: Read / Write / Construct Only
Allowed values: [1,255]
Default value: 1
“do-timestamp” property“do-timestamp” gboolean
Apply current stream time to buffers or provide buffers without timestamps. Must be set before creating a stream transmitter.
Owner: FsTransmitter
Flags: Read / Write
Default value: TRUE
“gst-sink” property “gst-sink” GstElement *
A network source GstElement to be used by the FsSession These element's sink must have async=FALSE This element MUST provide a pad named "sink_%u" per component. These pads number must start at 1 (the %u corresponds to the component number). These pads MUST be static pads.
Owner: FsTransmitter
Flags: Read
“gst-src” property “gst-src” GstElement *
A network source GstElement to be used by the FsSession
This element MUST provide a source pad named "src_u" per component.
These pads number must start at 1 (the u corresponds to the component
number).
These pads MUST be static pads.
Owner: FsTransmitter
Flags: Read
“tos” property“tos” guint
Sets the IP ToS field (and if possible the IPv6 TCLASS field
Owner: FsTransmitter
Flags: Read / Write
Allowed values: <= 255
Default value: 0
“error” signalvoid user_function (FsTransmitter *self, FsError errorno, char *error_msg, gpointer user_data)
This signal is emitted in any error condition
self |
FsTransmitter that emitted the signal |
|
errorno |
The number of the error |
|
error_msg |
Error message to be displayed to user |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last