HeaderExtension
Object Hierarchy:
Gst.RTP.HeaderExtension
Gst.RTP.HeaderExtension
Gst.RTP.HeaderExtension
Gst.Element
Gst.Element
Gst.Element->Gst.RTP.HeaderExtension
Gst.Object
Gst.Object
Gst.Object->Gst.Element
GLib.InitiallyUnowned
GLib.InitiallyUnowned
GLib.InitiallyUnowned->Gst.Object
GLib.Object
GLib.Object
GLib.Object->GLib.InitiallyUnowned
Description:
[ CCode ( type_id = "gst_rtp_header_extension_get_type ()" ) ] [ GIR ( name = "RTPHeaderExtension" ) ] [ Version ( since = "1.20" ) ]public abstract class HeaderExtension : Element
Instance struct for a RTP Audio/Video header extension.
Content:
Static methods:
Creation methods:
Methods:
public HeaderExtensionDirection get_direction ()
Retrieve the direction
public uint get_id ()
public virtual size_t get_max_size (Buffer input_meta)
This is used to know how much data a certain header extension will
need for both allocating the resulting data, and deciding how much payload data can be generated.
public string get_sdp_caps_field_name ()
public virtual HeaderExtensionFlags get_supported_flags ()
public unowned string get_uri ()
public virtual bool read (HeaderExtensionFlags read_flags, uint8 [] data, Buffer buffer)
Read the RTP header extension from data
.
public virtual bool set_attributes (HeaderExtensionDirection direction, string attributes)
public bool set_attributes_from_caps (Caps caps)
set_id
must have been called with a valid extension id that is contained in these caps.
public virtual bool set_caps_from_attributes (Caps caps)
set_id
must have been called with a valid extension id that is contained in these caps.
public bool set_caps_from_attributes_helper (Caps caps, string attributes)
Helper implementation for
GstRTPExtensionClass::set_caps_from_attributes that sets the this uri on caps with the specified
extension id as required for sdp Caps .
public void set_direction (HeaderExtensionDirection direction)
Set the direction that this header extension should be used in.
public void set_id (uint ext_id)
sets the RTP extension id on this
public virtual bool set_non_rtp_sink_caps (Caps caps)
Passes RTP payloader's sink (i.e. not payloaded) caps
to
the header extension.
public class void set_uri (string uri)
Set the URI for this RTP header extension implementation.
public void set_wants_update_non_rtp_src_caps (bool state)
Call this function in a subclass from
GstRTPHeaderExtensionClass::read
to tell the depayloader whether the data just parsed from RTP packet require updating its
src (non-RTP) caps.
public virtual bool update_non_rtp_src_caps (Caps caps)
Updates depayloader src caps based on the information received in RTP
header.
public bool wants_update_non_rtp_src_caps ()
Call this function after
read to check if the depayloader's src caps need updating with
data received in the last RTP packet.
public virtual ssize_t write (Buffer input_meta, HeaderExtensionFlags write_flags, Buffer output, uint8 [] data)
Writes the RTP header extension to data
using information
available from the input_meta
.
Inherited Members:
All known members inherited from class Gst.Element
All known members inherited from class Gst.Object
@lock
@ref
add_control_binding
check_uniqueness
deep_notify
default_deep_notify
default_error
flags
get_control_binding
get_control_rate
get_g_value_array
get_name
get_parent
get_path_string
get_value
has_active_control_bindings
has_ancestor
has_as_ancestor
has_as_parent
name
parent
remove_control_binding
replace
set_control_binding_disabled
set_control_bindings_disabled
set_control_rate
set_name
set_parent
suggest_next_sync
sync_values
unparent
unref
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref