gstrtp.rtpheader_extension
Module for [RTPHeaderExtension] class
Types 3
Instance struct for a RTP Audio/Video header extension.
Methods
RTPHeaderExtensionGidBuilder builder() static nothrowGet builder for [gstrtp.rtpheader_extension.RTPHeaderExtension] Returns: New builder objectgstrtp.types.RTPHeaderExtensionDirection getDirection() nothrowRetrieve the direction Returns: The directionuint getId() nothrowsize_t getMaxSize(gst.buffer.Buffer inputMeta) nothrowThis 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.string getSdpCapsFieldName() nothrowstring getUri() nothrowbool read(gstrtp.types.RTPHeaderExtensionFlags readFlags, ubyte[] data, gst.buffer.Buffer buffer) nothrowRead the RTP header extension from data.bool setAttributesFromCaps(gst.caps.Caps caps) nothrow[gstrtp.rtpheader_extension.RTPHeaderExtension.setId] must have been called with a valid extension id that is contained in these caps.bool setCapsFromAttributes(gst.caps.Caps caps) nothrow[gstrtp.rtpheader_extension.RTPHeaderExtension.setId] must have been called with a valid extension id that is contained in these caps.bool setCapsFromAttributesHelper(gst.caps.Caps caps, string attributes) nothrowHelper implementation for GstRTPExtensionClass::set_caps_from_attributes that sets the ext uri on caps with the specified extension id as required for sdp #GstCaps.void setDirection(gstrtp.types.RTPHeaderExtensionDirection direction) nothrowSet the direction that this header extension should be used in. If #GST_RTP_HEADER_EXTENSION_DIRECTION_INHERITED is included, the direction will not be included in the caps (as it shouldn't be in t...bool setNonRtpSinkCaps(gst.caps.Caps caps) nothrowPasses RTP payloader's sink (i.e. not payloaded) caps to the header extension.void setWantsUpdateNonRtpSrcCaps(bool state) nothrowCall 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. If state is TRU...bool updateNonRtpSrcCaps(gst.caps.Caps caps) nothrowUpdates depayloader src caps based on the information received in RTP header. caps must be writable as this function may modify them.bool wantsUpdateNonRtpSrcCaps() nothrowCall this function after [gstrtp.rtpheader_extension.RTPHeaderExtension.read] to check if the depayloader's src caps need updating with data received in the last RTP packet. Returns: Whether ext wa...ptrdiff_t write(gst.buffer.Buffer inputMeta, gstrtp.types.RTPHeaderExtensionFlags writeFlags, gst.buffer.Buffer output, ubyte[] data) nothrowWrites the RTP header extension to data using information available from the input_meta. data will be sized to be at least the value returned from [gstrtp.rtpheader_extension.RTPHeaderExtension.ge...Fluent builder implementation template for gstrtp.rtpheader_extension.RTPHeaderExtension
Fluent builder for gstrtp.rtpheader_extension.RTPHeaderExtension
Methods