gstrtp.rtpheader_extension
Module for [RTPHeaderExtension] class
Types 3
Instance struct for a RTP Audio/Video header extension.
Methods
RTPHeaderExtension self()Returns `this`, for use in `with` statements.RTPHeaderExtensionGidBuilder builder()Get builder for [gstrtp.rtpheader_extension.RTPHeaderExtension] Returns: New builder objectgstrtp.types.RTPHeaderExtensionDirection getDirection()Retrieve the direction Returns: The directionuint getId()size_t getMaxSize(gst.buffer.Buffer inputMeta)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.string getSdpCapsFieldName()string getUri()bool read(gstrtp.types.RTPHeaderExtensionFlags readFlags, ubyte[] data, gst.buffer.Buffer buffer)Read the RTP header extension from data.bool setAttributesFromCaps(gst.caps.Caps caps)[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)[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)Helper implementation for GstRTPExtensionClass::setcapsfrom_attributes that sets the ext uri on caps with the specified extension id as required for sdp #GstCaps.void setDirection(gstrtp.types.RTPHeaderExtensionDirection direction)Set the direction that this header extension should be used in. If #GSTRTPHEADEREXTENSIONDIRECTION_INHERITED is included, the direction will not be included in the caps (as it shouldn't be in the e...void setId(uint extId)sets the RTP extension id on extbool setNonRtpSinkCaps(gst.caps.Caps caps)Passes RTP payloader's sink (i.e. not payloaded) caps to the header extension.void setWantsUpdateNonRtpSrcCaps(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. If state is TRU...bool updateNonRtpSrcCaps(gst.caps.Caps caps)Updates depayloader src caps based on the information received in RTP header. caps must be writable as this function may modify them.bool wantsUpdateNonRtpSrcCaps()Call 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)Writes the RTP header extension to data using information available from the inputmeta. data will be sized to be at least the value returned from [gstrtp.rtpheaderextension.RTPHeaderExtension.getM...Fluent builder for [gstrtp.rtpheader_extension.RTPHeaderExtension]
Methods