GstRtp.RTPHeaderExtensionClass

Fields

Name

Type

Access

Description

get_max_size

object

r

retrieve the maximum size for this extension based on the information available from input_meta. Implementations should attempt to provide as accurate information as possible as the returned value will be used to control the amount of possible data in the payload. Implementations must return the maximum as the allocated size for writing the extension will be at least the size of the returned value. Return the amount of data read or <0 on failure.

get_supported_flags

object

r

retrieve the supported flags

parent_class

Gst.ElementClass

r

the parent class

read

object

r

read from a rtp payloaded buffer and extract the extension information, optionally adding some meta onto the output buffer.

set_attributes

object

r

set the necessary attributes that may be signaled e.g. with an SDP.

set_caps_from_attributes

object

r

write the necessary caps field/s for the configured attributes e.g. as signalled with SDP.

set_non_rtp_sink_caps

object

r

read any information from sink caps that the header extension needs for its function.

update_non_rtp_src_caps

object

r

update depayloader non-RTP (depayloaded) caps with the information parsed from RTP header.

write

object

r

write into data the information for this extension. Various information is provided to help writing extensions in particular cases.

Methods

set_uri (uri)

Details

class GstRtp.RTPHeaderExtensionClass

Base class for RTP Header extensions.

New in version 1.20.

set_uri(uri)[source]
Parameters:

uri (str) – the RTP Header extension uri for self

Set the URI for this RTP header extension implementation.

New in version 1.20.