gstrtp.rtpbase_payload
Module for [RTPBasePayload] class
Types 3
Provides a base class for RTP payloaders
Methods
RTPBasePayload self()Returns `this`, for use in `with` statements.RTPBasePayloadGidBuilder builder()Get builder for [gstrtp.rtpbase_payload.RTPBasePayload] Returns: New builder objectbool autoHeaderExtension() @propertyGet `autoHeaderExtension` property. Returns: If enabled, the payloader will automatically try to enable all the RTP header extensions provided in the src caps, saving the application the need to ha...void autoHeaderExtension(bool propval) @propertySet `autoHeaderExtension` property. Params: propval = If enabled, the payloader will automatically try to enable all the RTP header extensions provided in the src caps, saving the application the n...long maxPtime() @propertyvoid maxPtime(long propval) @propertylong minPtime() @propertyGet `minPtime` property. Returns: Minimum duration of the packet data in ns (can't go above MTU)void minPtime(long propval) @propertySet `minPtime` property. Params: propval = Minimum duration of the packet data in ns (can't go above MTU)uint mtu() @propertyvoid mtu(uint propval) @propertybool onvifNoRateControl() @propertyGet `onvifNoRateControl` property. Returns: Make the payloader timestamp packets according to the Rate-Control=no behaviour specified in the ONVIF replay spec.void onvifNoRateControl(bool propval) @propertySet `onvifNoRateControl` property. Params: propval = Make the payloader timestamp packets according to the Rate-Control=no behaviour specified in the ONVIF replay spec.bool perfectRtptime() @propertyGet `perfectRtptime` property. Returns: Try to use the offset fields to generate perfect RTP timestamps. When this option is disabled, RTP timestamps are generated from GSTBUFFERPTS of each payload...void perfectRtptime(bool propval) @propertySet `perfectRtptime` property. Params: propval = Try to use the offset fields to generate perfect RTP timestamps. When this option is disabled, RTP timestamps are generated from GSTBUFFERPTS of eac...uint pt() @propertyvoid pt(uint propval) @propertylong ptimeMultiple() @propertyGet `ptimeMultiple` property. Returns: Force buffers to be multiples of this duration in ns (0 disables)void ptimeMultiple(long propval) @propertySet `ptimeMultiple` property. Params: propval = Force buffers to be multiples of this duration in ns (0 disables)bool scaleRtptime() @propertyGet `scaleRtptime` property. Returns: Make the RTP packets' timestamps be scaled with the segment's rate (corresponding to RTSP speed parameter). Disabling this property means the timestamps will n...void scaleRtptime(bool propval) @propertySet `scaleRtptime` property. Params: propval = Make the RTP packets' timestamps be scaled with the segment's rate (corresponding to RTSP speed parameter). Disabling this property means the timestam...uint seqnum() @propertyint seqnumOffset() @propertyvoid seqnumOffset(int propval) @propertybool sourceInfo() @propertyGet `sourceInfo` property. Returns: Enable writing the CSRC field in allocated RTP header based on RTP source information found in the input buffer's #GstRTPSourceMeta.void sourceInfo(bool propval) @propertySet `sourceInfo` property. Params: propval = Enable writing the CSRC field in allocated RTP header based on RTP source information found in the input buffer's #GstRTPSourceMeta.uint ssrc() @propertyvoid ssrc(uint propval) @propertygst.structure.Structure stats() @propertyGet `stats` property. Returns: Various payloader statistics retrieved atomically (and are therefore synchroized with each other), these can be used e.g. to generate an RTP-Info header. This propert...uint timestamp() @propertyuint timestampOffset() @propertyvoid timestampOffset(uint propval) @propertygst.buffer.Buffer allocateOutputBuffer(uint payloadLen, ubyte padLen, ubyte csrcCount)Allocate a new #GstBuffer with enough data to hold an RTP packet with minimum csrccount CSRCs, a payload length of payloadlen and padding of pad_len. If payload has #GstRTPBasePayload:source-info t...uint getSourceCount(gst.buffer.Buffer buffer)Count the total number of RTP sources found in the meta of buffer, which will be automically added by [gstrtp.rtpbase_payload.RTPBasePayload.allocateOutputBuffer]. If #GstRTPBasePayload:source-info...bool isFilled(uint size, gst.types.ClockTime duration)Check if the packet with size and duration would exceed the configured maximum size.bool isSourceInfoEnabled()Queries whether the payloader will add contributing sources (CSRCs) to the RTP header from #GstRTPSourceMeta. Returns: true if source-info is enabled.gst.types.FlowReturn push(gst.buffer.Buffer buffer)Push buffer to the peer element of the payloader. The SSRC, payload type, seqnum and timestamp of the RTP buffer will be updated first.gst.types.FlowReturn pushList(gst.buffer_list.BufferList list)Push list to the peer element of the payloader. The SSRC, payload type, seqnum and timestamp of the RTP buffer will be updated first.void setOptions(string media, bool dynamic, string encodingName, uint clockRate)Set the rtp options of the payloader. These options will be set in the caps of the payloader. Subclasses must call this method before calling [gstrtp.rtpbasepayload.RTPBasePayload.push] or [gstrtp....bool setOutcapsStructure(gst.structure.Structure s = null)Configure the output caps with the optional fields.void setSourceInfoEnabled(bool enable)Enable or disable adding contributing sources to RTP packets from #GstRTPSourceMeta.gulong connectAddExtension(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gstrtp.rtpheader_extension.RTPHeaderExtension)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gstrtp.rtpbase_payload.RTPBasePayload)))
&& Parameters!T.length < 3)Connect to `AddExtension` signal.gulong connectClearExtensions(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gstrtp.rtpbase_payload.RTPBasePayload)))
&& Parameters!T.length < 2)Connect to `ClearExtensions` signal.gulong connectRequestExtension(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T : gstrtp.rtpheader_extension.RTPHeaderExtension)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == uint)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == string)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gstrtp.rtpbase_payload.RTPBasePayload)))
&& Parameters!T.length < 4)Connect to `RequestExtension` signal.Methods
T autoHeaderExtension(bool propval)Set `autoHeaderExtension` property. Params: propval = If enabled, the payloader will automatically try to enable all the RTP header extensions provided in the src caps, saving the application the n...T maxPtime(long propval)T minPtime(long propval)Set `minPtime` property. Params: propval = Minimum duration of the packet data in ns (can't go above MTU) Returns: Builder instance for fluent chainingT mtu(uint propval)T onvifNoRateControl(bool propval)Set `onvifNoRateControl` property. Params: propval = Make the payloader timestamp packets according to the Rate-Control=no behaviour specified in the ONVIF replay spec. Returns: Builder instance fo...T perfectRtptime(bool propval)Set `perfectRtptime` property. Params: propval = Try to use the offset fields to generate perfect RTP timestamps. When this option is disabled, RTP timestamps are generated from GSTBUFFERPTS of eac...T pt(uint propval)T ptimeMultiple(long propval)Set `ptimeMultiple` property. Params: propval = Force buffers to be multiples of this duration in ns (0 disables) Returns: Builder instance for fluent chainingT scaleRtptime(bool propval)Set `scaleRtptime` property. Params: propval = Make the RTP packets' timestamps be scaled with the segment's rate (corresponding to RTSP speed parameter). Disabling this property means the timestam...T seqnumOffset(int propval)T sourceInfo(bool propval)Set `sourceInfo` property. Params: propval = Enable writing the CSRC field in allocated RTP header based on RTP source information found in the input buffer's #GstRTPSourceMeta. Returns: Builder in...T ssrc(uint propval)T timestampOffset(uint propval)Fluent builder for [gstrtp.rtpbase_payload.RTPBasePayload]
Methods