gstrtp.rtpbase_payload
Module for [RTPBasePayload] class
Types 3
Provides a base class for RTP payloaders
Methods
RTPBasePayloadGidBuilder builder() static nothrowGet builder for [gstrtp.rtpbase_payload.RTPBasePayload] Returns: New builder objectbool autoHeaderExtension() @property nothrowGet `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) @property nothrowSet `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 minPtime() @property nothrowGet `minPtime` property. Returns: Minimum duration of the packet data in ns (can't go above MTU)void minPtime(long propval) @property nothrowSet `minPtime` property. Params: propval = Minimum duration of the packet data in ns (can't go above MTU)bool onvifNoRateControl() @property nothrowGet `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) @property nothrowSet `onvifNoRateControl` property. Params: propval = Make the payloader timestamp packets according to the Rate-Control=no behaviour specified in the ONVIF replay spec.bool perfectRtptime() @property nothrowGet `perfectRtptime` property. Returns: Try to use the offset fields to generate perfect RTP timestamps. When this option is disabled, RTP timestamps are generated from GST_BUFFER_PTS of each paylo...void perfectRtptime(bool propval) @property nothrowSet `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 GST_BUFFER_PTS of e...long ptimeMultiple() @property nothrowGet `ptimeMultiple` property. Returns: Force buffers to be multiples of this duration in ns (0 disables)void ptimeMultiple(long propval) @property nothrowSet `ptimeMultiple` property. Params: propval = Force buffers to be multiples of this duration in ns (0 disables)bool scaleRtptime() @property nothrowGet `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) @property nothrowSet `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...bool sourceInfo() @property nothrowGet `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) @property nothrowSet `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.gst.structure.Structure stats() @property nothrowGet `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...gst.buffer.Buffer allocateOutputBuffer(uint payloadLen, ubyte padLen, ubyte csrcCount) nothrowAllocate a new #GstBuffer with enough data to hold an RTP packet with minimum csrc_count CSRCs, a payload length of payload_len and padding of pad_len. If payload has #GstRTPBasePayload:source-info...uint getSourceCount(gst.buffer.Buffer buffer) nothrowCount 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) nothrowCheck if the packet with size and duration would exceed the configured maximum size.bool isSourceInfoEnabled() nothrowQueries 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) nothrowPush 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) nothrowPush 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) nothrowSet 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.rtpbase_payload.RTPBasePayload.push] or [gstrtp...bool setOutcapsStructure(gst.structure.Structure s = null) nothrowConfigure the output caps with the optional fields.void setSourceInfoEnabled(bool enable) nothrowEnable 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) nothrowConnect 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) nothrowConnect 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) nothrowConnect to `RequestExtension` signal.Fluent builder implementation template for gstrtp.rtpbase_payload.RTPBasePayload
Methods
T autoHeaderExtension(bool propval) nothrowSet `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) nothrowT minPtime(long propval) nothrowSet `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) nothrowT onvifNoRateControl(bool propval) nothrowSet `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) nothrowSet `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 GST_BUFFER_PTS of e...T pt(uint propval) nothrowT ptimeMultiple(long propval) nothrowSet `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) nothrowSet `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) nothrowT sourceInfo(bool propval) nothrowSet `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) nothrowT timestampOffset(uint propval) nothrowFluent builder for gstrtp.rtpbase_payload.RTPBasePayload
Methods