Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- Farstream.candidate_list_copy(candidate_list)¶
- Parameters:
candidate_list ([
Farstream.Codec]) – AGLib.ListofFarstream.Candidate- Returns:
a new
GLib.ListofFarstream.Candidate- Return type:
Copies a
GLib.ListofFarstream.Candidateand its contents
- Farstream.codec_list_are_equal(list1, list2)¶
- Parameters:
list1 ([
Farstream.Codec] orNone) – aGLib.ListofFarstream.Codeclist2 ([
Farstream.Codec] orNone) – aGLib.ListofFarstream.Codec
- Returns:
- Return type:
Verifies if two glist of fscodecs are identical
- Farstream.codec_list_copy(codec_list)¶
- Parameters:
codec_list ([
Farstream.Codec]) – aGLib.ListofFarstream.Codecto copy- Returns:
The new list.
- Return type:
Copies a list of
Farstream.Codecstructures.
- Farstream.codec_list_from_keyfile(filename)¶
- Parameters:
filename (
str) – Name of theGLib.KeyFileto read the codecs parameters from- Raises:
- Returns:
The
GLib.ListofFarstream.CodecorNoneif the keyfile was empty or an error occured.- Return type:
Reads the content of a
GLib.KeyFileof the following format into aGLib.ListofFarstream.Codecstructures.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.Objectto match against the messagemessage (
Gst.Message) – aGst.Messageto parse
- Returns:
Trueif the message matches the object and is valid.- error:
Returns the
Farstream.Errorerror 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.ListofFarstream.RtpHeaderExtension- Returns:
a new
GLib.ListofFarstream.RtpHeaderExtension- Return type:
Does a deep copy of a
GLib.ListofFarstream.RtpHeaderExtension
- Farstream.rtp_header_extension_list_from_keyfile(filename, media_type)¶
- Parameters:
filename (
str) – Name of theGLib.KeyFileto read the RTP Header Extensions frommedia_type (
Farstream.MediaType) – The media type for which to get header extensions
- Raises:
- Returns:
a
GLib.ListofFarstream.RtpHeaderExtensionthat must be freed with fs_rtp_header_extension_list_destroy()- Return type:
Reads the content of a
GLib.KeyFileof the following format into aGLib.ListofFarstream.RtpHeaderExtensionstructures.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.Listshould 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.MediaTypefor which to get default RTP Header Extension preferences
- Returns:
The default rtp header extension preferences for this plugin, this
GLib.Listshould 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.Elementbitrate (
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.Valueof type #FS_TYPE_CANDIDATE_LISTcandidates ([
Farstream.Candidate] orNone) – AGLib.ListofFarstream.Candidate
This is for the bindings benefit. Works around the limitations of
GObject.Objectintrospection.