Farstream.StreamTransmitter¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Whether to associate incoming data stream based on the source address |
||
r/w/co |
A |
||
r/w |
If set to |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
This signal is emitted in any error condition |
|
This signal is emitted when a buffer coming from a confirmed known source is received. |
|
This signal is emitted when all local candidates have been prepared, an ICE implementation would send its SDP offer or answer. |
|
This signal is emitted when there is a new active chandidate pair that has been established. |
|
This signal is emitted when a new local candidate is discovered. |
|
This signal is emitted when the ICE state (or equivalent) of the component changes |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Farstream.StreamTransmitter(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
All members are private, access them using methods and properties
- add_remote_candidates(candidates)¶
- Parameters:
candidates ([
Farstream.Candidate
]) – aGLib.List
of the remote candidates- Raises:
- Returns:
True
of the candidate could be added,False
if it couldnt (and theGLib.Error
will be set)- Return type:
This function is used to add remote candidates to the transmitter
- emit_error(error_no, error_msg)¶
- Parameters:
This function emit the “error” signal on a
Farstream.StreamTransmitter
, it should only be called by subclasses.
- force_remote_candidates(remote_candidates)¶
- Parameters:
remote_candidates ([
Farstream.Candidate
]) – aGLib.List
ofFarstream.Candidate
to force- Raises:
- Returns:
- Return type:
This function forces data to be sent immediately to the selected remote candidate, by-passing any connectivity checks. There should be at most one candidate per component.
- gather_local_candidates()¶
-
This function tells the transmitter to start gathering local candidates, signals for new candidates and newly active candidates can be emitted during the call to this function.
- stop()¶
This functions stops the
Farstream.StreamTransmitter
, it must be called before the last reference is dropped.
- do_add_remote_candidates(candidates) virtual¶
- Parameters:
candidates ([
Farstream.Candidate
]) – aGLib.List
of the remote candidates- Returns:
True
of the candidate could be added,False
if it couldnt (and theGLib.Error
will be set)- Return type:
This function is used to add remote candidates to the transmitter
- do_force_remote_candidates(remote_candidates) virtual¶
- Parameters:
remote_candidates ([
Farstream.Candidate
]) – aGLib.List
ofFarstream.Candidate
to force- Returns:
- Return type:
This function forces data to be sent immediately to the selected remote candidate, by-passing any connectivity checks. There should be at most one candidate per component.
- do_gather_local_candidates() virtual¶
-
This function tells the transmitter to start gathering local candidates, signals for new candidates and newly active candidates can be emitted during the call to this function.
- do_stop() virtual¶
This functions stops the
Farstream.StreamTransmitter
, it must be called before the last reference is dropped.
Signal Details¶
- Farstream.StreamTransmitter.signals.error(stream_transmitter, errorno, error_msg)¶
- Signal Name:
error
- Flags:
- Parameters:
stream_transmitter (
Farstream.StreamTransmitter
) – The object which received the signalerrorno (
Farstream.Error
) – The number of the errorerror_msg (
str
) – Error message (for the programmer)
This signal is emitted in any error condition
- Farstream.StreamTransmitter.signals.known_source_packet_received(stream_transmitter, component, buffer)¶
- Signal Name:
known-source-packet-received
- Flags:
- Parameters:
stream_transmitter (
Farstream.StreamTransmitter
) – The object which received the signalcomponent (
int
) – The Component on which this buffer was receivedbuffer (
object
orNone
) – theGst.Buffer
coming from the known source
This signal is emitted when a buffer coming from a confirmed known source is received.
- Farstream.StreamTransmitter.signals.local_candidates_prepared(stream_transmitter)¶
- Signal Name:
local-candidates-prepared
- Flags:
- Parameters:
stream_transmitter (
Farstream.StreamTransmitter
) – The object which received the signal
This signal is emitted when all local candidates have been prepared, an ICE implementation would send its SDP offer or answer.
- Farstream.StreamTransmitter.signals.new_active_candidate_pair(stream_transmitter, local_candidate, remote_candidate)¶
- Signal Name:
new-active-candidate-pair
- Flags:
- Parameters:
stream_transmitter (
Farstream.StreamTransmitter
) – The object which received the signallocal_candidate (
Farstream.Candidate
) –Farstream.Candidate
of the local candidate being usedremote_candidate (
Farstream.Candidate
) –Farstream.Candidate
of the remote candidate being used
This signal is emitted when there is a new active chandidate pair that has been established. This is specially useful for ICE where the active candidate pair can change automatically due to network conditions. The user must not modify the candidates and must copy them if he wants to use them outside the callback scope.
- Farstream.StreamTransmitter.signals.new_local_candidate(stream_transmitter, local_candidate)¶
- Signal Name:
new-local-candidate
- Flags:
- Parameters:
stream_transmitter (
Farstream.StreamTransmitter
) – The object which received the signallocal_candidate (
Farstream.Candidate
) –Farstream.Candidate
of the local candidate
This signal is emitted when a new local candidate is discovered.
- Farstream.StreamTransmitter.signals.state_changed(stream_transmitter, component, state)¶
- Signal Name:
state-changed
- Flags:
- Parameters:
stream_transmitter (
Farstream.StreamTransmitter
) – The object which received the signalcomponent (
int
) – the id of the component which state has changedstate (
Farstream.StreamState
) – the new state of the component
This signal is emitted when the ICE state (or equivalent) of the component changes
Property Details¶
- Farstream.StreamTransmitter.props.associate_on_source¶
- Name:
associate-on-source
- Type:
- Default Value:
- Flags:
This tells the stream transmitter to associate incoming data with this based on the source without looking at the content if possible.
- Farstream.StreamTransmitter.props.preferred_local_candidates¶
- Name:
preferred-local-candidates
- Type:
- Default Value:
- Flags:
A
GLib.List
of FsCandidates
- Farstream.StreamTransmitter.props.sending¶
-
A network source
Gst.Element
to be used by theFarstream.Session