Farstream.Transmitter¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The number of components to create |
||
r/w |
Apply current stream time to buffers |
||
r |
A source |
||
r |
A source |
||
r/w |
The IP Type of Service to set on sent packets |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
This signal is emitted in any error condition |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
construction_error |
r |
||
parent |
r |
Class Details¶
- class Farstream.Transmitter(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
All members are private, access them using methods and properties
- classmethod list_available()¶
- Returns:
a newly allocated array of strings containing the list of all available transmitters or
None
if there are none. It should be freed withGLib.strfreev
().- Return type:
[
str
]
Get the list of all available transmitters
- classmethod new(type, components, tos)¶
- Parameters:
- Raises:
- Returns:
a newly-created
Farstream.Transmitter
of the requested type (orNone
if there is an error)- Return type:
This function creates a new transmitter of the requested type. It will load the appropriate plugin as required.
- emit_error(error_no, error_msg)¶
- Parameters:
This function emit the “error” signal on a
Farstream.Transmitter
, it should only be called by subclasses.
- get_stream_transmitter_type()¶
- Returns:
the
GObject.GType
- Return type:
This function returns the
GObject.Object
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.
- new_stream_transmitter(participant, n_parameters, parameters)¶
- Parameters:
participant (
Farstream.Participant
) – theFarstream.Participant
for which theFarstream.Stream
using this newFarstream.StreamTransmitter
is createdn_parameters (
int
) – The number of parameters to pass to the newly createdFarstream.StreamTransmitter
parameters (
GObject.Parameter
) – an array ofGObject.Parameter
- Raises:
- Returns:
a new
Farstream.StreamTransmitter
, orNone
if there is an error- Return type:
This function will create a new
Farstream.StreamTransmitter
element for a specific participant for thisFarstream.Transmitter
- do_get_stream_transmitter_type() virtual¶
- Returns:
the
GObject.GType
- Return type:
This function returns the
GObject.Object
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.
- do_new_stream_transmitter(participant, n_parameters, parameters) virtual¶
- Parameters:
participant (
Farstream.Participant
) – theFarstream.Participant
for which theFarstream.Stream
using this newFarstream.StreamTransmitter
is createdn_parameters (
int
) – The number of parameters to pass to the newly createdFarstream.StreamTransmitter
parameters (
GObject.Parameter
) – an array ofGObject.Parameter
- Returns:
a new
Farstream.StreamTransmitter
, orNone
if there is an error- Return type:
This function will create a new
Farstream.StreamTransmitter
element for a specific participant for thisFarstream.Transmitter
Signal Details¶
- Farstream.Transmitter.signals.error(transmitter, errorno, error_msg)¶
- Signal Name:
error
- Flags:
- Parameters:
transmitter (
Farstream.Transmitter
) – The object which received the signalerrorno (
Farstream.Error
) – The number of the errorerror_msg (
str
) – Error message to be displayed to user
This signal is emitted in any error condition
Property Details¶
- Farstream.Transmitter.props.components¶
- Name:
components
- Type:
- Default Value:
1
- Flags:
The number of components to create
- Farstream.Transmitter.props.do_timestamp¶
-
Apply current stream time to buffers or provide buffers without timestamps. Must be set before creating a stream transmitter.
- Farstream.Transmitter.props.gst_sink¶
- Name:
gst-sink
- Type:
- Default Value:
- Flags:
A network source
Gst.Element
to be used by theFarstream.Session
These element’s sink must have async=:obj: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.
- Farstream.Transmitter.props.gst_src¶
- Name:
gst-src
- Type:
- Default Value:
- Flags:
A network source
Gst.Element
to be used by theFarstream.Session
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.