Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- Farstream.candidate_list_copy(candidate_list)¶
- Parameters:
candidate_list ([
Farstream.Codec
]) – AGLib.List
ofFarstream.Candidate
- Returns:
a new
GLib.List
ofFarstream.Candidate
- Return type:
Copies a
GLib.List
ofFarstream.Candidate
and its contents
- Farstream.codec_list_are_equal(list1, list2)¶
- Parameters:
list1 ([
Farstream.Codec
] orNone
) – aGLib.List
ofFarstream.Codec
list2 ([
Farstream.Codec
] orNone
) – aGLib.List
ofFarstream.Codec
- Returns:
- Return type:
Verifies if two glist of fscodecs are identical
- Farstream.codec_list_copy(codec_list)¶
- Parameters:
codec_list ([
Farstream.Codec
]) – aGLib.List
ofFarstream.Codec
to copy- Returns:
The new list.
- Return type:
Copies a list of
Farstream.Codec
structures.
- Farstream.codec_list_from_keyfile(filename)¶
- Parameters:
filename (
str
) – Name of theGLib.KeyFile
to read the codecs parameters from- Raises:
- Returns:
The
GLib.List
ofFarstream.Codec
orNone
if the keyfile was empty or an error occured.- Return type:
Reads the content of a
GLib.KeyFile
of the following format into aGLib.List
ofFarstream.Codec
structures.Example:
[audio/codec1] clock-rate=8000 [audio/codec1:1] clock-rate=16000 [audio/codec2] one_param=QCIF another_param=WOW [video/codec3] wierd_param=42 feedback:nack/pli=1 feedback:tfrc=
- Farstream.media_type_to_string(media_type)¶
- Parameters:
media_type (
Farstream.MediaType
) – A media type- Returns:
a static string representing the media type
- Return type:
Gives a user-printable string representing the media type
- Farstream.parse_error(object, message)¶
- Parameters:
object (
GObject.Object
) – aGObject.Object
to match against the messagemessage (
Gst.Message
) – aGst.Message
to parse
- Returns:
True
if the message matches the object and is valid.- error:
Returns the
Farstream.Error
error number in the message if notNone
.- error_msg:
Returns the error message if not
None
- Return type:
(
bool
, error:Farstream.Error
, error_msg:str
)
Parses a “farstream-farstream” message and checks if it matches the object parameters.
- Farstream.rtp_header_extension_list_copy(extensions)¶
- Parameters:
extensions ([
Farstream.RtpHeaderExtension
]) – aGLib.List
ofFarstream.RtpHeaderExtension
- Returns:
a new
GLib.List
ofFarstream.RtpHeaderExtension
- Return type:
Does a deep copy of a
GLib.List
ofFarstream.RtpHeaderExtension
- Farstream.rtp_header_extension_list_from_keyfile(filename, media_type)¶
- Parameters:
filename (
str
) – Name of theGLib.KeyFile
to read the RTP Header Extensions frommedia_type (
Farstream.MediaType
) – The media type for which to get header extensions
- Raises:
- Returns:
a
GLib.List
ofFarstream.RtpHeaderExtension
that must be freed with fs_rtp_header_extension_list_destroy()- Return type:
Reads the content of a
GLib.KeyFile
of the following format into aGLib.List
ofFarstream.RtpHeaderExtension
structures.The groups have a format “rtp-hdrext:audio:XXX” or “rtp-hdrext:video:XXX” where XXX is a unique string (per media type).
The valid keys are:
id: a int between in the 1-255 and 4096-4351 ranges
uri: a URI describing the RTP Header Extension
direction (optional): To only send or receive a RTP Header Extension, possible values are “send”, “receive”, “none” or “both”. Defaults to “both”
Example:
[rtp-hdrext:audio:a] id=1 uri=urn:ietf:params:rtp-hdrext:toffset [rtp-hdrext:audio:abc] id=3 uri=urn:ietf:params:rtp-hdrext:ntp-64 direction=receive
- Farstream.utils_get_default_codec_preferences(element)¶
- Parameters:
element (
Gst.Element
) – Element for which to fetch default codec preferences- Returns:
The default codec preferences for this plugin. This
GLib.List
should be freed with fs_codec_list_destroy()- Return type:
These default codec preferences should work with the elements that are available in the main GStreamer element repositories. They should be suitable for standards based protocols like SIP or XMPP.
- Farstream.utils_get_default_rtp_header_extension_preferences(element, media_type)¶
- Parameters:
element (
Gst.Element
) – Element for which to fetch default RTP Header Extension preferencesmedia_type (
Farstream.MediaType
) – TheFarstream.MediaType
for which to get default RTP Header Extension preferences
- Returns:
The default rtp header extension preferences for this plugin, this
GLib.List
should be freed with fs_codec_list_destroy()- Return type:
These default rtp header extension preferences should work with the elements that are available in the main GStreamer element repositories. They should be suitable for standards based protocols like SIP or XMPP.
- Farstream.utils_set_bitrate(element, bitrate)¶
- Parameters:
element (
Gst.Element
) – TheGst.Element
bitrate (
int
) – The bitrate in bits/sec
This allows setting the bitrate on all elements that have a “bitrate” property without having to know the type or of the unit used by that element.
This will be obsolete in 0.11 (when all elements use bit/sec for the “bitrate” property.
- Farstream.value_set_candidate_list(value, candidates)¶
- Parameters:
value (
GObject.Value
) – aGObject.Value
of type #FS_TYPE_CANDIDATE_LISTcandidates ([
Farstream.Candidate
] orNone
) – AGLib.List
ofFarstream.Candidate
This is for the bindings benefit. Works around the limitations of
GObject.Object
introspection.